From b0399135064d89d64b44fa7785210c5df698f734 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Sun, 23 Oct 2016 11:38:17 +0800 Subject: [PATCH] Update locale.js Should change the lang been selected in the lang select/option menu. --- public/js/locale.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/locale.js b/public/js/locale.js index 702496e74..e6d11cd28 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