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: Use Downloader to send the data to server Created April 6, 2016, 3 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') | lib/filterHits.js » ('J')
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') | lib/filterHits.js » ('J')

Powered by Google App Engine
This is Rietveld