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

Unified Diff: options.js

Issue 5589897452716032: Implemented ext.contextMenus for Safari (Closed)
Patch Set: Created Jan. 18, 2014, 10:29 a.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 | « lib/prefs.js ('k') | safari/background.js » ('j') | safari/background.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: options.js
===================================================================
--- a/options.js
+++ b/options.js
@@ -133,10 +133,10 @@
function initCheckbox(id)
{
var checkbox = document.getElementById(id);
- checkbox.checked = typeof localStorage[id] == "undefined" ? true : localStorage[id] == "true";
+ checkbox.checked = Prefs[id];
checkbox.addEventListener("click", function()
{
- localStorage[id] = checkbox.checked;
+ Prefs[id] = checkbox.checked;
}, false);
}
« no previous file with comments | « lib/prefs.js ('k') | safari/background.js » ('j') | safari/background.js » ('J')

Powered by Google App Engine
This is Rietveld