diff options
author | Max Wu | 2016-10-23 16:31:47 +0800 |
---|---|---|
committer | GitHub | 2016-10-23 16:31:47 +0800 |
commit | 5236e568e735486250736f9c2e7214d9367e9c39 (patch) | |
tree | 01da664a9dc08956a1d62be9f49fdfeea3753c74 /public/js | |
parent | 67786a8aab2c2d0265144cb960540c629d2465f3 (diff) | |
parent | b0399135064d89d64b44fa7785210c5df698f734 (diff) |
Merge pull request #229 from PeterDaveHello/patch-1
Update locale.js
Diffstat (limited to '')
-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 |