]> git.wh0rd.org Git - tt-rss.git/commitdiff
filter,label dlg: use default action
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 11 Dec 2017 15:23:30 +0000 (18:23 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 11 Dec 2017 15:23:30 +0000 (18:23 +0300)
classes/feeds.php
classes/pref/filters.php
classes/pref/labels.php

index 8c103828ff7c63a7fec7604344e022aa42fab489..ebd1a1c9ea9aea8c91f3f58a61eae7c721f921e2 100755 (executable)
@@ -1161,7 +1161,7 @@ class Feeds extends Handler_Protected {
                                </div>";
                }
 
-               print "<button dojoType=\"dijit.form.Button\" type=\"submit\" onclick=\"dijit.byId('searchDlg').execute()\">".__('Search')."</button>
+               print "<button dojoType=\"dijit.form.Button\" type=\"submit\" class=\"primary\" onclick=\"dijit.byId('searchDlg').execute()\">".__('Search')."</button>
                <button dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('searchDlg').hide()\">".__('Cancel')."</button>
                </div>";
 
index 74aecd30901ddbaad2f83ce783182cdd8d9e5c47..f2de8c9344f20f34bac48770d3db245e53d5f1d6 100755 (executable)
@@ -521,13 +521,14 @@ class Pref_Filters extends Handler_Protected {
                        print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('filterEditDlg').test()\">".
                                __('Test')."</button> ";
 
-                       print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('filterEditDlg').execute()\">".
+                       print "<button dojoType=\"dijit.form.Button\" type=\"submit\" class=\"primary\" onclick=\"return dijit.byId('filterEditDlg').execute()\">".
                                __('Save')."</button> ";
 
                        print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('filterEditDlg').hide()\">".
                                __('Cancel')."</button>";
 
                        print "</div>";
+                       print "</form>";
                        
                }
        }
index 38ec850a6ecb0a7ee4d9ab0938a0bfb960989ab4..963ec41cdb6735ab1e87d5ab1dc8fb3435c66523 100644 (file)
@@ -20,6 +20,8 @@ class Pref_Labels extends Handler_Protected {
                        print_hidden("op", "pref-labels");
                        print_hidden("method", "save");
 
+                       print "<form onsubmit='return false;'>";
+
                        print "<div class=\"dlgSec\">".__("Caption")."</div>";
 
                        print "<div class=\"dlgSecCont\">";
@@ -76,11 +78,13 @@ class Pref_Labels extends Handler_Protected {
 #                      print "</form>";
 
                        print "<div class=\"dlgButtons\">";
-                       print "<button dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('labelEditDlg').execute()\">".
+                       print "<button dojoType=\"dijit.form.Button\" type=\"submit\" class=\"primary\" onclick=\"dijit.byId('labelEditDlg').execute()\">".
                                __('Save')."</button>";
                        print "<button dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('labelEditDlg').hide()\">".
                                __('Cancel')."</button>";
                        print "</div>";
+
+                       print "</form>";
                }
        }