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

Side by Side Diff: chrome/content/options.js

Issue 8948027: Ported changes from Adblock Plus integration back into URL Fixer (Closed)
Patch Set: Created Jan. 14, 2013, 10:03 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
« no previous file with comments | « no previous file | chrome/content/typedItOptIn.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of the URL Fixer, 2 * This file is part of the URL Fixer,
3 * Copyright (C) 2006-2012 Eyeo GmbH 3 * Copyright (C) 2006-2012 Eyeo GmbH
4 * 4 *
5 * URL Fixer is free software: you can redistribute it and/or modify 5 * URL Fixer 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 * URL Fixer is distributed in the hope that it will be useful, 9 * URL Fixer 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 12 matching lines...) Expand all
23 23
24 function initCheckboxes() 24 function initCheckboxes()
25 { 25 {
26 E("domainOptIn").checked = Prefs.domainOptIn; 26 E("domainOptIn").checked = Prefs.domainOptIn;
27 } 27 }
28 28
29 function onItemSelected(list) 29 function onItemSelected(list)
30 { 30 {
31 let button = E(list.getAttribute("_removeButton")); 31 let button = E(list.getAttribute("_removeButton"));
32 let items = list.selectedItems; 32 let items = list.selectedItems;
33 button.disabled = (items.length == 0 || (items.length == 1 && !items[0].value) ) 33 button.disabled = (items.length == 0 || (items.length == 1 && !items[0].value) );
34 } 34 }
35 35
36 function onFindChange() 36 function onFindChange()
37 { 37 {
38 let find = E("find"); 38 let find = E("find");
39 let button = E("add-button"); 39 let button = E("add-button");
40 button.disabled = !find.value; 40 button.disabled = !find.value;
41 } 41 }
42 42
43 function onPrefChange(name) 43 function onPrefChange(name)
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 for (let i = items.length - 1; i >= 0; i--) 167 for (let i = items.length - 1; i >= 0; i--)
168 { 168 {
169 let searchString = items[i].getAttribute("value"); 169 let searchString = items[i].getAttribute("value");
170 delete Prefs[pref][searchString]; 170 delete Prefs[pref][searchString];
171 171
172 if (pref == "whitelist") 172 if (pref == "whitelist")
173 onWhitelistEntryRemoved(searchString); 173 onWhitelistEntryRemoved(searchString);
174 } 174 }
175 Prefs[pref] = JSON.parse(JSON.stringify(Prefs[pref])); 175 Prefs[pref] = JSON.parse(JSON.stringify(Prefs[pref]));
176 } 176 }
OLDNEW
« no previous file with comments | « no previous file | chrome/content/typedItOptIn.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld