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

Side by Side Diff: chrome/content/ui/typoSettings.js

Issue 10585038: First-run page (revisited) (Closed)
Patch Set: Implemented behavior of remaining buttons on Chrome; Added changelog and data corruption warning Created May 24, 2013, 10:09 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2013 Eyeo GmbH 3 * Copyright (C) 2006-2013 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 }, 101 },
102 102
103 updateState: function() 103 updateState: function()
104 { 104 {
105 let enabled = Prefs.correctTypos; 105 let enabled = Prefs.correctTypos;
106 E("typo_enable").checked = enabled; 106 E("typo_enable").checked = enabled;
107 E("typo_whitelist_container").hidden = !enabled; 107 E("typo_whitelist_container").hidden = !enabled;
108 } 108 }
109 }; 109 };
110 110
111 // only interact with UI if loaded in the context of filter settings dialog
Thomas Greiner 2013/05/24 10:19:12 tried to put the whole block under the if but resu
Wladimir Palant 2013/05/27 11:02:00 Please revert these changes, this script should on
Thomas Greiner 2013/05/27 13:03:16 Done.
111 window.addEventListener("load", function() 112 window.addEventListener("load", function()
112 { 113 {
113 TypoActions.init(); 114 if (document.documentElement.id == "abpFiltersWindow")
115 TypoActions.init();
114 }, false); 116 }, false);
OLDNEW

Powered by Google App Engine
This is Rietveld