quickAddFeed: fix legacy feed_id type being passed to newrule

This commit is contained in:
Andrew Dolgov 2017-07-02 22:50:44 +03:00
parent 10a1f28f7c
commit 267bcee32c
2 changed files with 3 additions and 2 deletions

View File

@ -1083,7 +1083,7 @@ function quickAddFilter() {
var feed_id = activeFeedIsCat() ? 'CAT:' + parseInt(getActiveFeedId()) : var feed_id = activeFeedIsCat() ? 'CAT:' + parseInt(getActiveFeedId()) :
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)); addFilterRule(null, dojo.toJson(rule));
@ -1107,7 +1107,7 @@ function quickAddFilter() {
var feed_id = activeFeedIsCat() ? 'CAT:' + parseInt(getActiveFeedId()) : var feed_id = activeFeedIsCat() ? 'CAT:' + parseInt(getActiveFeedId()) :
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)); addFilterRule(null, dojo.toJson(rule));
} }

View File

@ -228,6 +228,7 @@ function init() {
"dijit/form/Form", "dijit/form/Form",
"dijit/form/RadioButton", "dijit/form/RadioButton",
"dijit/form/Select", "dijit/form/Select",
"dijit/form/MultiSelect",
"dijit/form/SimpleTextarea", "dijit/form/SimpleTextarea",
"dijit/form/TextBox", "dijit/form/TextBox",
"dijit/form/ComboBox", "dijit/form/ComboBox",