diff options
author | Andrew Dolgov <[email protected]> | 2021-02-12 14:31:36 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-12 14:31:36 +0300 |
commit | 8f8675a26abf86ff6a77bc750096b77491d71213 (patch) | |
tree | b6eb5ee57a46ecd1a5caa70bbf93caabbcc721cd /js/App.js | |
parent | 699186f430bb28059d7ade7a15259f1ec10ff8f3 (diff) |
* filters: remove duplicate code, overall cleanup
* check if some tres exist before trying to reload them
Diffstat (limited to 'js/App.js')
-rw-r--r-- | js/App.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -18,7 +18,7 @@ const App = { LABEL_BASE_INDEX: -1024, FormFields: { hidden: function(name, value) { - return `<input dojoType="dijit.form.TextBox" style="display : none" name="${name}" value="${value}"></input>` + return `<input dojoType="dijit.form.TextBox" style="display : none" name="${name}" value="${App.escapeHtml(value)}"></input>` } }, Scrollable: { @@ -884,7 +884,7 @@ const App = { }; this.hotkey_actions["create_filter"] = () => { - Filters.quickAddFilter(); + Filters.edit(); }; this.hotkey_actions["help_dialog"] = () => { @@ -1115,7 +1115,7 @@ const App = { CommonDialogs.addLabel(); }; this.hotkey_actions["create_filter"] = () => { - Filters.quickAddFilter(); + Filters.edit(); }; this.hotkey_actions["collapse_sidebar"] = () => { Feeds.toggle(); |