1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 10:45:56 +00:00

* filters: remove duplicate code, overall cleanup

* check if some tres exist before trying to reload them
This commit is contained in:
Andrew Dolgov
2021-02-12 14:31:36 +03:00
parent 699186f430
commit 8f8675a26a
7 changed files with 256 additions and 441 deletions

View File

@@ -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();