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

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

Issue 6337686776315904: Issue 394 - hit statistics tool data collection (Closed)
Patch Set: Rebase to changeset 4157 Created April 6, 2016, 2:56 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 | chrome/content/ui/filters.xul » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/ui/filters.js
===================================================================
--- a/chrome/content/ui/filters.js
+++ b/chrome/content/ui/filters.js
@@ -26,6 +26,16 @@
if (filter instanceof Filter)
Utils.runAsync(() => SubscriptionActions.selectFilter(filter));
}
+
+ E("sendStats-container").hidden = !Prefs.savestats;
+ E("sendStats").checked = Prefs.sendstats;
+ Prefs.addListener(function(name)
+ {
+ if (name == "savestats")
+ E("sendStats-container").hidden = !Prefs.savestats;
+ else if (name == "sendStats")
+ E("sendStats").checked = Prefs.sendstats;
+ });
}
/**
@@ -102,6 +112,14 @@
}
/**
+ * Toggles option for sending filter hit statistics.
+ */
+function toggleSendStats(/**Boolean*/ allow)
+{
+ Prefs.sendstats = allow;
+}
+
+/**
* Template processing functions.
* @class
*/
« no previous file with comments | « no previous file | chrome/content/ui/filters.xul » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld