diff options
author | Andrew Dolgov <[email protected]> | 2017-12-11 18:46:27 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-12-11 18:46:27 +0300 |
commit | 121ac0481fb6bb77cd56d768809583f5255d021c (patch) | |
tree | ccc5d4031e9debaa37147874980f2bdc0155ce58 /classes/pref | |
parent | ef1feb36106aad29c5c6281211a95600cd8c5de4 (diff) |
filter rule/action dialogs: set default action
Diffstat (limited to 'classes/pref')
-rwxr-xr-x | classes/pref/filters.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/pref/filters.php b/classes/pref/filters.php index ebed799b6..eb41bab4a 100755 --- a/classes/pref/filters.php +++ b/classes/pref/filters.php @@ -963,7 +963,7 @@ class Pref_Filters extends Handler_Protected { $inverse_checked = ""; } - print "<form name='filter_new_rule_form' id='filter_new_rule_form'>"; + print "<form name='filter_new_rule_form' id='filter_new_rule_form' onsubmit='return false;'>"; $res = $this->pdo->query("SELECT id,description FROM ttrss_filter_types WHERE id != 5 ORDER BY description"); @@ -1011,7 +1011,7 @@ class Pref_Filters extends Handler_Protected { </div>"; - print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('filterNewRuleDlg').execute()\">". + print "<button dojoType=\"dijit.form.Button\" class=\"btn-primary \" type=\"submit\" onclick=\"return dijit.byId('filterNewRuleDlg').execute()\">". ($rule ? __("Save rule") : __('Add rule'))."</button> "; print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('filterNewRuleDlg').hide()\">". @@ -1033,7 +1033,7 @@ class Pref_Filters extends Handler_Protected { $action_id = 0; } - print "<form name='filter_new_action_form' id='filter_new_action_form'>"; + print "<form name='filter_new_action_form' id='filter_new_action_form' onsubmit='return false;'>"; print "<div class=\"dlgSec\">".__("Perform Action")."</div>"; @@ -1104,7 +1104,7 @@ class Pref_Filters extends Handler_Protected { print "<div class=\"dlgButtons\">"; - print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('filterNewActionDlg').execute()\">". + print "<button dojoType=\"dijit.form.Button\" class=\"btn-primary\" type=\"submit\" onclick=\"return dijit.byId('filterNewActionDlg').execute()\">". ($action ? __("Save action") : __('Add action'))."</button> "; print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('filterNewActionDlg').hide()\">". |