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. 7, 2014, 11:57 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
« include.postload.js ('K') | « lib/prefs.js ('k') | safari/background.js » ('j') | no next file with comments »
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);
}
« include.postload.js ('K') | « lib/prefs.js ('k') | safari/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld