summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorPeter Dave Hello2016-10-23 11:38:17 +0800
committerGitHub2016-10-23 11:38:17 +0800
commitb0399135064d89d64b44fa7785210c5df698f734 (patch)
tree1878dee4aa128ff54302937c2b3d2bff0b072368 /public
parent27bc94744dbfdf64717f5f18fbba2dcf931a0a5d (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.js2
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