]> git.wh0rd.org - tt-rss.git/commitdiff
strict js: fix subscribing when HTML with multiple feeds
authorwn_ <invalid@email.com>
Sun, 11 Mar 2018 19:35:36 +0000 (14:35 -0500)
committerwn_ <invalid@email.com>
Sun, 11 Mar 2018 19:35:36 +0000 (14:35 -0500)
also a minor fix for response handling in quickAddFilter

js/functions.js

index 6c0b97cb8fff54070599e7345f3411b520e5dbbc..c0e25cae3aa580e973cca06668d749e644adcd25 100755 (executable)
@@ -646,7 +646,7 @@ function quickAddFeed() {
                                                                dialog.show_error(__("Specified URL doesn't seem to contain any feeds."));
                                                                break;
                                                        case 4:
-                                                               feeds = rc['feeds'];
+                                                               var feeds = rc['feeds'];
 
                                                                Element.show("fadd_multiple_notify");
 
@@ -1032,7 +1032,7 @@ function quickAddFilter() {
 
                                        var title = false;
 
-                                       if (reply && reply) title = reply.title;
+                                       if (reply && reply.title) title = reply.title;
 
                                        if (title || getActiveFeedId() || activeFeedIsCat()) {