diff options
author | Peter Dave Hello | 2016-10-23 11:38:17 +0800 |
---|---|---|
committer | GitHub | 2016-10-23 11:38:17 +0800 |
commit | b0399135064d89d64b44fa7785210c5df698f734 (patch) | |
tree | 1878dee4aa128ff54302937c2b3d2bff0b072368 /public | |
parent | 27bc94744dbfdf64717f5f18fbba2dcf931a0a5d (diff) |
Update locale.js
Should change the lang been selected in the lang select/option menu.
Diffstat (limited to 'public')
-rw-r--r-- | public/js/locale.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/public/js/locale.js b/public/js/locale.js index 702496e7..e6d11cd2 100644 --- a/public/js/locale.js +++ b/public/js/locale.js @@ -16,6 +16,8 @@ if (Cookies.get('locale')) { } locale.val(lang); +$('select.ui-locale option[value="' + lang + '"]').attr('selected','selected'); + locale.change(function() { Cookies.set('locale', $(this).val(), { expires: 365 |