diff options
author | Andrew Dolgov <[email protected]> | 2017-07-02 22:50:44 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-07-02 22:50:44 +0300 |
commit | 267bcee32ce65e853372305e399091cd74c3fbfc (patch) | |
tree | 51d384107bc6ef613a126721fa47d4fd52652832 /js | |
parent | 10a1f28f7c532455a17a15b158f965fd1fea9d51 (diff) |
quickAddFeed: fix legacy feed_id type being passed to newrule
Diffstat (limited to 'js')
-rwxr-xr-x | js/functions.js | 4 | ||||
-rw-r--r-- | js/tt-rss.js | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/js/functions.js b/js/functions.js index 934f69e96..aff20a33c 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 c51e25db5..1872ad1ab 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", |