mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 07:25:57 +00:00
subscribe dialog: add primary action
This commit is contained in:
@@ -1000,6 +1000,8 @@ class Feeds extends Handler_Protected {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function quickAddFeed() {
|
function quickAddFeed() {
|
||||||
|
print "<form onsubmit='return false'>";
|
||||||
|
|
||||||
print_hidden("op", "rpc");
|
print_hidden("op", "rpc");
|
||||||
print_hidden("method", "addfeed");
|
print_hidden("method", "addfeed");
|
||||||
|
|
||||||
@@ -1064,10 +1066,8 @@ class Feeds extends Handler_Protected {
|
|||||||
<label for=\"feedDlg_loginCheck\">".
|
<label for=\"feedDlg_loginCheck\">".
|
||||||
__('This feed requires authentication.')."</div>";
|
__('This feed requires authentication.')."</div>";
|
||||||
|
|
||||||
print "</form>";
|
|
||||||
|
|
||||||
print "<div class=\"dlgButtons\">
|
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)) {
|
if (!(defined('_DISABLE_FEED_BROWSER') && _DISABLE_FEED_BROWSER)) {
|
||||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return feedBrowser()\">".__('More feeds')."</button>";
|
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>
|
print "<button dojoType=\"dijit.form.Button\" onclick=\"return dijit.byId('feedAddDlg').hide()\">".__('Cancel')."</button>
|
||||||
</div>";
|
</div>";
|
||||||
|
|
||||||
|
print "</form>";
|
||||||
|
|
||||||
//return;
|
//return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user