Update locale.js

Should change the lang been selected in the lang select/option menu.
This commit is contained in:
Peter Dave Hello 2016-10-23 11:38:17 +08:00 committed by GitHub
parent 27bc94744d
commit b039913506

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