]> git.wh0rd.org Git - tt-rss.git/commitdiff
subscribe dialog: add primary action
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 11 Dec 2017 15:43:53 +0000 (18:43 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 11 Dec 2017 15:43:53 +0000 (18:43 +0300)
classes/feeds.php

index e446e3d4fff3c9f6f990fdc42ece512734ca5383..58661994540f4bad520ee74909def6818a9e92c0 100755 (executable)
@@ -1000,6 +1000,8 @@ class Feeds extends Handler_Protected {
        }
 
        function quickAddFeed() {
+               print "<form onsubmit='return false'>";
+
                print_hidden("op", "rpc");
                print_hidden("method", "addfeed");
 
@@ -1064,10 +1066,8 @@ class Feeds extends Handler_Protected {
                                <label for=\"feedDlg_loginCheck\">".
                                __('This feed requires authentication.')."</div>";
 
-               print "</form>";
-
                print "<div class=\"dlgButtons\">
-                       <button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('feedAddDlg').execute()\">".__('Subscribe')."</button>";
+                       <button dojoType=\"dijit.form.Button\" class=\"btn-primary\" type=\"submit\" onclick=\"return dijit.byId('feedAddDlg').execute()\">".__('Subscribe')."</button>";
 
                if (!(defined('_DISABLE_FEED_BROWSER') && _DISABLE_FEED_BROWSER)) {
                        print "<button dojoType=\"dijit.form.Button\" onclick=\"return feedBrowser()\">".__('More feeds')."</button>";
@@ -1076,6 +1076,8 @@ class Feeds extends Handler_Protected {
                print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('feedAddDlg').hide()\">".__('Cancel')."</button>
                        </div>";
 
+               print "</form>";
+
                //return;
        }