|
|
|
@ -148,13 +148,14 @@ $(document).ready(function () {
|
|
|
|
|
|
|
|
|
|
// if notifications are enabled, or wasn't set, check the notifications checkbox
|
|
|
|
|
chrome.storage.local.get('update_notify', function (result) {
|
|
|
|
|
if (result.update_notify === 'undefined' || result.update_notify) {
|
|
|
|
|
if (typeof result.update_notify === 'undefined' || result.update_notify) {
|
|
|
|
|
$('div.notifications input').prop('checked', true);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('div.notifications input').change(function () {
|
|
|
|
|
var check = $(this).is(':checked');
|
|
|
|
|
googleAnalytics.sendEvent('Settings', 'Notifications', check);
|
|
|
|
|
|
|
|
|
|
chrome.storage.local.set({'update_notify': check});
|
|
|
|
|
});
|
|
|
|
@ -165,8 +166,9 @@ $(document).ready(function () {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$('div.statistics input').change(function () {
|
|
|
|
|
var result = $(this).is(':checked');
|
|
|
|
|
googleAnalyticsConfig.setTrackingPermitted(result);
|
|
|
|
|
var check = $(this).is(':checked');
|
|
|
|
|
googleAnalytics.sendEvent('Settings', 'GoogleAnalytics', check);
|
|
|
|
|
googleAnalyticsConfig.setTrackingPermitted(check);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function close_and_cleanup(e) {
|
|
|
|
|