From 267bcee32ce65e853372305e399091cd74c3fbfc Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 2 Jul 2017 22:50:44 +0300 Subject: [PATCH] quickAddFeed: fix legacy feed_id type being passed to newrule --- js/functions.js | 4 ++-- js/tt-rss.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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", -- 2.39.5