From: wn_ Date: Sun, 11 Mar 2018 19:35:36 +0000 (-0500) Subject: strict js: fix subscribing when HTML with multiple feeds X-Git-Tag: 18.8~53^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=30aa9743eb14cfb7a4ce7ea38136171617963876;p=tt-rss.git strict js: fix subscribing when HTML with multiple feeds also a minor fix for response handling in quickAddFilter --- diff --git a/js/functions.js b/js/functions.js index 6c0b97cb..c0e25cae 100755 --- a/js/functions.js +++ b/js/functions.js @@ -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()) {