Update locale.js
Should change the lang been selected in the lang select/option menu.
This commit is contained in:
parent
27bc94744d
commit
b039913506
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue