summaryrefslogtreecommitdiff
path: root/js/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-07-02 22:50:44 +0300
committerAndrew Dolgov <[email protected]>2017-07-02 22:50:44 +0300
commit267bcee32ce65e853372305e399091cd74c3fbfc (patch)
tree51d384107bc6ef613a126721fa47d4fd52652832 /js/functions.js
parent10a1f28f7c532455a17a15b158f965fd1fea9d51 (diff)
quickAddFeed: fix legacy feed_id type being passed to newrule
Diffstat (limited to 'js/functions.js')
-rwxr-xr-xjs/functions.js4
1 files changed, 2 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));
}