summaryrefslogtreecommitdiff
path: root/js/App.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-12 14:31:36 +0300
committerAndrew Dolgov <[email protected]>2021-02-12 14:31:36 +0300
commit8f8675a26abf86ff6a77bc750096b77491d71213 (patch)
treeb6eb5ee57a46ecd1a5caa70bbf93caabbcc721cd /js/App.js
parent699186f430bb28059d7ade7a15259f1ec10ff8f3 (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.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/App.js b/js/App.js
index 7b7572c9b..07cb45481 100644
--- a/js/App.js
+++ b/js/App.js
@@ -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();