From: Andrew Dolgov Date: Sun, 2 Jul 2017 19:50:44 +0000 (+0300) Subject: quickAddFeed: fix legacy feed_id type being passed to newrule X-Git-Tag: 17.12~161 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=267bcee32ce65e853372305e399091cd74c3fbfc;p=tt-rss.git quickAddFeed: fix legacy feed_id type being passed to newrule --- diff --git a/js/functions.js b/js/functions.js index 934f69e9..aff20a33 100755 --- a/js/functions.js +++ b/js/functions.js @@ -1083,7 +1083,7 @@ function quickAddFilter() { var feed_id = activeFeedIsCat() ? 'CAT:' + parseInt(getActiveFeedId()) : getActiveFeedId(); - var rule = { reg_exp: selectedText, feed_id: feed_id, filter_type: 1 }; + var rule = { reg_exp: selectedText, feed_id: [feed_id], filter_type: 1 }; addFilterRule(null, dojo.toJson(rule)); @@ -1107,7 +1107,7 @@ function quickAddFilter() { var feed_id = activeFeedIsCat() ? 'CAT:' + parseInt(getActiveFeedId()) : getActiveFeedId(); - var rule = { reg_exp: title, feed_id: feed_id, filter_type: 1 }; + var rule = { reg_exp: title, feed_id: [feed_id], filter_type: 1 }; addFilterRule(null, dojo.toJson(rule)); } diff --git a/js/tt-rss.js b/js/tt-rss.js index c51e25db..1872ad1a 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -228,6 +228,7 @@ function init() { "dijit/form/Form", "dijit/form/RadioButton", "dijit/form/Select", + "dijit/form/MultiSelect", "dijit/form/SimpleTextarea", "dijit/form/TextBox", "dijit/form/ComboBox",