Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: options.js

Issue 29339116: Issue 3877 - Fixed filter change listener regression in options page (Closed)
Patch Set: Created March 30, 2016, 12:09 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: options.js
diff --git a/options.js b/options.js
index 8ab05ccc705aae3da95b2ca51dc01f9c90e61f26..daf7b8c7b34e60cf165146df1500339e77e37a9b 100644
--- a/options.js
+++ b/options.js
@@ -452,7 +452,7 @@ function onSubscriptionAdded(subscription)
if (subscription instanceof SpecialSubscription)
{
for (var i = 0; i < subscription.filters.length; i++)
- onFilterChange("filter.added", subscription.filters[i]);
+ onFilterAdded(subscription.filters[i]);
}
else if (subscription.url == Prefs.subscriptions_exceptionsurl)
$("#acceptableAds").prop("checked", true);
@@ -465,7 +465,7 @@ function onSubscriptionRemoved(subscription)
if (subscription instanceof SpecialSubscription)
{
for (var i = 0; i < subscription.filters.length; i++)
- onFilterChange("filter.removed", subscription.filters[i]);
+ onFilterRemoved(subscription.filters[i]);
}
else if (subscription.url == Prefs.subscriptions_exceptionsurl)
$("#acceptableAds").prop("checked", false);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld