summaryrefslogtreecommitdiff
path: root/classes/pref/filters.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-12 15:50:06 +0300
committerAndrew Dolgov <[email protected]>2021-02-12 15:50:06 +0300
commit3268364693814ae89df5d2c2d090108b182e48eb (patch)
treebd57ae9b8771814577eb4498a7432070370d56dd /classes/pref/filters.php
parent3d11c61f326ef133427f6f37de4429e879c725f2 (diff)
more dialog-related cleanup
Diffstat (limited to 'classes/pref/filters.php')
-rwxr-xr-xclasses/pref/filters.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/classes/pref/filters.php b/classes/pref/filters.php
index 62f6fc1a0..a24a05b05 100755
--- a/classes/pref/filters.php
+++ b/classes/pref/filters.php
@@ -2,8 +2,7 @@
class Pref_Filters extends Handler_Protected {
function csrf_ignore($method) {
- $csrf_ignored = array("index", "getfiltertree", "newrule",
- "newaction", "savefilterorder");
+ $csrf_ignored = array("index", "getfiltertree", "savefilterorder");
return array_search($method, $csrf_ignored) !== false;
}
@@ -857,10 +856,10 @@ class Pref_Filters extends Handler_Protected {
print "<button dojoType='dijit.form.Button' style='float : left' class='alt-info' onclick='window.open(\"https://tt-rss.org/wiki/ContentFilters\")'>
<i class='material-icons'>help</i> ".__("More info...")."</button>";
- print "<button dojoType='dijit.form.Button' class='alt-primary' type='submit' onclick=\"return dijit.byId('filterNewRuleDlg').execute()\">".
+ print "<button dojoType='dijit.form.Button' class='alt-primary' type='submit' onclick='App.dialogOf(this).execute()'>".
($rule ? __("Save rule") : __('Add rule'))."</button> ";
- print "<button dojoType='dijit.form.Button' onclick=\"return dijit.byId('filterNewRuleDlg').hide()\">".
+ print "<button dojoType='dijit.form.Button' onclick='App.dialogOf(this).hide()'>".
__('Cancel')."</button>";
print "</footer>";
@@ -950,10 +949,10 @@ class Pref_Filters extends Handler_Protected {
print "<footer>";
- print "<button dojoType='dijit.form.Button' class='alt-primary' type='submit' onclick=\"return dijit.byId('filterNewActionDlg').execute()\">".
+ print "<button dojoType='dijit.form.Button' class='alt-primary' type='submit' onclick='App.dialogOf(this).execute()'>".
($action ? __("Save action") : __('Add action'))."</button> ";
- print "<button dojoType='dijit.form.Button' onclick=\"return dijit.byId('filterNewActionDlg').hide()\">".
+ print "<button dojoType='dijit.form.Button' onclick='App.dialogOf(this).hide()'>".
__('Cancel')."</button>";
print "</footer>";