diff options
author | moisseev <moiseev@mezonplus.ru> | 2022-04-18 17:44:12 +0300 |
---|---|---|
committer | moisseev <moiseev@mezonplus.ru> | 2022-04-18 17:44:12 +0300 |
commit | 27cea48502b50c4ed8f9f56ed7daeecbb80e9ebf (patch) | |
tree | 179800ad3c21ad11d1ba0cf5205955b587d8877d /interface/js/app | |
parent | c883beea68fb48516f0044fd5a1b7524b3720b0c (diff) | |
download | rspamd-27cea48502b50c4ed8f9f56ed7daeecbb80e9ebf.tar.gz rspamd-27cea48502b50c4ed8f9f56ed7daeecbb80e9ebf.zip |
[Minor] Use existing constant
Diffstat (limited to 'interface/js/app')
-rw-r--r-- | interface/js/app/rspamd.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index 0fe64ecb6..a8a904fd3 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -409,7 +409,7 @@ function ($, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_config, (function initSettings() { var selected_locale = null; var custom_locale = null; - var localeTextbox = ".popover #settings-popover #locale"; + const localeTextbox = ".popover #settings-popover #locale"; function validateLocale(saveToLocalStorage) { function toggle_form_group_class(remove, add) { @@ -472,7 +472,7 @@ function ($, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_config, localStorage.setItem("selected_locale", selected_locale); validateLocale(); }); - $(document).on("input", ".popover #settings-popover #locale", function () { + $(document).on("input", localeTextbox, function () { custom_locale = $(localeTextbox).val(); validateLocale(true); }); |