Index: chrome/content/ui/firstRun.js |
=================================================================== |
--- a/chrome/content/ui/firstRun.js |
+++ b/chrome/content/ui/firstRun.js |
@@ -271,8 +271,10 @@ |
function updateToggleButton(feature, isEnabled) |
{ |
var button = E("toggle-" + feature); |
- button.className = isEnabled ? "disable" : "enable"; |
- button.textContent = i18n.getMessage(isEnabled ? "firstRun_action_disable" : "firstRun_action_enable"); |
+ if (isEnabled && button.classList.contains("off")) |
+ button.classList.remove("off"); |
+ else if (!isEnabled && !button.classList.contains("off")) |
+ button.classList.add("off"); |
Wladimir Palant
2013/07/08 09:37:29
classList.remove() and classList.add() already do
Thomas Greiner
2013/07/08 10:30:19
Done.
|
} |
document.addEventListener("DOMContentLoaded", onDOMLoaded, false); |