From e0e75d9a56022e03e7c04d3910852f7f53d4ca00 Mon Sep 17 00:00:00 2001 From: yan Date: Wed, 30 Oct 2019 08:37:49 +0800 Subject: [PATCH] fix Semantic-UI#6736 remove chinese mirror site expired. Semantic-Org/Semantic-UI#6736 --- server/files/javascript/docs.js | 11 +---------- server/partials/language-modal.html | 21 --------------------- 2 files changed, 1 insertion(+), 31 deletions(-) diff --git a/server/files/javascript/docs.js b/server/files/javascript/docs.js index 1c3d1b761e..e2933ed2e8 100644 --- a/server/files/javascript/docs.js +++ b/server/files/javascript/docs.js @@ -57,7 +57,6 @@ semantic.ready = function() { $pageTabs = $('.masthead.tab.segment .tabs.menu .item'), $languageDropdown = $('.language.dropdown'), - $chineseModal = $('.chinese.modal'), $languageModal = $('.language.modal'), $downloadPopup = $('.download.button'), @@ -297,15 +296,7 @@ semantic.ready = function() { ; // dont trigger on translate event every page load if(languageDropdownUsed) { - if(languageCode == 'zh' && window.location.host.replace('www.','') !== 'semantic-ui.cn') { - $chineseModal - .modal({ - closable: false - }) - .modal('show') - ; - } - else if(percent < 100) { + if(percent < 100) { languageDropdownUsed = false; $languageModal .modal() diff --git a/server/partials/language-modal.html b/server/partials/language-modal.html index 5b2297df90..e06515431c 100644 --- a/server/partials/language-modal.html +++ b/server/partials/language-modal.html @@ -23,24 +23,3 @@ - - \ No newline at end of file