Merge pull request #229 from PeterDaveHello/patch-1

Update locale.js
This commit is contained in:
Max Wu 2016-10-23 16:31:47 +08:00 committed by GitHub
commit 5236e568e7

View file

@ -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