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

Unified Diff: chrome/content/ui/sendReport.js

Issue 5410618009976832: issue #690 - don't consider special subscriptions when complaining about high subscription count (Closed)
Patch Set: Created July 26, 2014, 7:39 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: chrome/content/ui/sendReport.js
===================================================================
--- a/chrome/content/ui/sendReport.js
+++ b/chrome/content/ui/sendReport.js
@@ -879,7 +879,7 @@
disabledFilters: [],
disabledSubscriptions: [],
ownFilters: [],
- numSubscriptions: 0,
+ numGeneralSubscriptions: 0,
Wladimir Palant 2014/07/28 09:17:18 I see no point renaming this property, your new na
saroyanm 2014/07/28 09:49:20 Done.
numAppliedFilters: Infinity,
subscriptionFilter: function(s)
@@ -949,8 +949,11 @@
}
}
}
+
+ for each (let {url} in FilterStorage.subscriptions.filter(this.subscriptionFilter))
saroyanm 2014/07/26 19:52:07 Not sure if we need separate generalSubscriptionFi
Wladimir Palant 2014/07/28 09:17:18 Please simply extend subscriptionFilter - this fun
saroyanm 2014/07/28 09:49:20 Seams like the issuesDataSource.subscriptionFilter
+ if (url != Prefs.subscriptions_exceptionsurl && url != Prefs.subscriptions_antiadblockurl)
+ this.numGeneralSubscriptions++;
- this.numSubscriptions = FilterStorage.subscriptions.filter(this.subscriptionFilter).length;
this.numAppliedFilters = 0;
for each (let filter in filtersDataSource.origFilters)
{
@@ -977,8 +980,8 @@
E("issuesWhitelistBox").hidden = !this.whitelistFilter;
E("issuesDisabledBox").hidden = this.isEnabled;
E("issuesNoFiltersBox").hidden = (type != "false positive" || this.numAppliedFilters > 0);
- E("issuesNoSubscriptionsBox").hidden = (type != "false negative" || this.numAppliedFilters > 0 || this.numSubscriptions > 0);
- E("issuesSubscriptionCountBox").hidden = (this.numSubscriptions < 5);
+ E("issuesNoSubscriptionsBox").hidden = (type != "false negative" || this.numAppliedFilters > 0 || this.numGeneralSubscriptions > 0);
+ E("issuesSubscriptionCountBox").hidden = (this.numGeneralSubscriptions < 5);
let ownFiltersBox = E("issuesOwnFilters");
if (this.ownFilters.length && !ownFiltersBox.firstChild)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld