subscribe dialog: add primary action

This commit is contained in:
Andrew Dolgov 2017-12-11 18:43:53 +03:00
parent 05e81655c3
commit ef1feb3610
1 changed files with 5 additions and 3 deletions

View File

@ -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;
}