quickAddFeed: fix legacy feed_id type being passed to newrule
This commit is contained in:
parent
10a1f28f7c
commit
267bcee32c
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue