mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-01 13:51:05 -05:00
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);
|
locale.val(lang);
|
||||||
|
$('select.ui-locale option[value="' + lang + '"]').attr('selected','selected');
|
||||||
|
|
||||||
locale.change(function() {
|
locale.change(function() {
|
||||||
Cookies.set('locale', $(this).val(), {
|
Cookies.set('locale', $(this).val(), {
|
||||||
expires: 365
|
expires: 365
|
||||||
|
|
Loading…
Reference in a new issue