 Issue 6337686776315904:
  Issue 394 - hit statistics tool data collection  (Closed)
    
  
    Issue 6337686776315904:
  Issue 394 - hit statistics tool data collection  (Closed) 
  | 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") | 
| 
Wladimir Palant
2016/03/22 21:32:18
The pref is called sendstats, not sendStats.
 
saroyanm
2016/04/06 15:15:21
Done.
 | 
| + 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 | 
| */ |