]> git.wh0rd.org - tt-rss.git/commitdiff
add notification to subscribe dialog when multiple feeds are detected
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 2 Oct 2013 11:24:08 +0000 (15:24 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 2 Oct 2013 11:24:08 +0000 (15:24 +0400)
classes/feeds.php
js/functions.js

index 5ee125f5fd580e91603a47f449c7843fd62fc8e6..e26318e7e2c2161a8436e865cf448deb516448b2 100644 (file)
@@ -978,6 +978,10 @@ class Feeds extends Handler_Protected {
                print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"rpc\">";
                print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"addfeed\">";
 
+               print "<div id='fadd_multiple_notify' style='display : none'>";
+               print_notice("Provided URL is a HTML page referencing multiple feeds, please select required feed from the dropdown menu below.");
+               print "<p></div>";
+
                print "<div class=\"dlgSec\">".__("Feed or site URL")."</div>";
                print "<div class=\"dlgSecCont\">";
 
index c75fb95cb2ec200f37d5200391d22fdb37df5438..fdd79159859d8261dd67b72f8cb6b914b1805e2f 100644 (file)
@@ -854,6 +854,8 @@ function quickAddFeed() {
                                                                case 4:
                                                                        feeds = rc['feeds'];
 
+                                                                       Element.show("fadd_multiple_notify");
+
                                                                        var select = dijit.byId("feedDlg_feedContainerSelect");
 
                                                                        while (select.getOptions().length > 0)