summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorMax Wu2016-10-23 16:31:47 +0800
committerGitHub2016-10-23 16:31:47 +0800
commit5236e568e735486250736f9c2e7214d9367e9c39 (patch)
tree01da664a9dc08956a1d62be9f49fdfeea3753c74 /public/js
parent67786a8aab2c2d0265144cb960540c629d2465f3 (diff)
parentb0399135064d89d64b44fa7785210c5df698f734 (diff)
Merge pull request #229 from PeterDaveHello/patch-1
Update locale.js
Diffstat (limited to '')
-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