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

Unified Diff: chrome/content/ui/firstRun.js

Issue 10860047: New toggle button on First-run page (Closed)
Patch Set: Created July 8, 2013, 10:26 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 | « chrome/content/ui/firstRun.html ('k') | chrome/skin/firstRun.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/ui/firstRun.js
===================================================================
--- a/chrome/content/ui/firstRun.js
+++ b/chrome/content/ui/firstRun.js
@@ -271,9 +271,9 @@
function updateToggleButton(feature, isEnabled)
{
var button = E("toggle-" + feature);
- if (isEnabled && button.classList.contains("off"))
+ if (isEnabled)
button.classList.remove("off");
- else if (!isEnabled && !button.classList.contains("off"))
+ else
button.classList.add("off");
}
« no previous file with comments | « chrome/content/ui/firstRun.html ('k') | chrome/skin/firstRun.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld