Skip to content

Commit

Permalink
wip: fix language switch in ce login page
Browse files Browse the repository at this point in the history
  • Loading branch information
IMBlues authored and v_yutyi committed Dec 28, 2021
1 parent 185398e commit b468931
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/login/static/js_ce/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ $(document).ready(function(){
// 中英文切换
const languageCH = $('#ch').parent();
const languageEN = $('#en').parent();

function changeLanguage (language) {
$("#language-value").val(language);
setTimeout(function(){
$("#language-form").submit();
}, 500);
}

languageCH.on('click', function() {
$(this).attr('class', 'language-item active');
languageEN.attr('class', 'language-item');
Expand Down

0 comments on commit b468931

Please sign in to comment.