LEFT | RIGHT |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 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 15 matching lines...) Expand all Loading... |
26 if (filter instanceof Filter) | 26 if (filter instanceof Filter) |
27 Utils.runAsync(() => SubscriptionActions.selectFilter(filter)); | 27 Utils.runAsync(() => SubscriptionActions.selectFilter(filter)); |
28 } | 28 } |
29 | 29 |
30 E("sendStats-container").hidden = !Prefs.savestats; | 30 E("sendStats-container").hidden = !Prefs.savestats; |
31 E("sendStats").checked = Prefs.sendstats; | 31 E("sendStats").checked = Prefs.sendstats; |
32 Prefs.addListener(function(name) | 32 Prefs.addListener(function(name) |
33 { | 33 { |
34 if (name == "savestats") | 34 if (name == "savestats") |
35 E("sendStats-container").hidden = !Prefs.savestats; | 35 E("sendStats-container").hidden = !Prefs.savestats; |
36 else if (name == "sendStats") | 36 else if (name == "sendstats") |
37 E("sendStats").checked = Prefs.sendstats; | 37 E("sendStats").checked = Prefs.sendstats; |
38 }); | 38 }); |
39 } | 39 } |
40 | 40 |
41 /** | 41 /** |
42 * Called whenever the currently selected tab changes. | 42 * Called whenever the currently selected tab changes. |
43 */ | 43 */ |
44 function onTabChange(/**Element*/ tabbox) | 44 function onTabChange(/**Element*/ tabbox) |
45 { | 45 { |
46 updateSelectedSubscription(); | 46 updateSelectedSubscription(); |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 * data object. | 236 * data object. |
237 */ | 237 */ |
238 getNodeForData: function(/**Node*/ parent, /**String*/ property, /**Object*/ d
ata) /**Node*/ | 238 getNodeForData: function(/**Node*/ parent, /**String*/ property, /**Object*/ d
ata) /**Node*/ |
239 { | 239 { |
240 for (let child = parent.firstChild; child; child = child.nextSibling) | 240 for (let child = parent.firstChild; child; child = child.nextSibling) |
241 if ("_data" in child && property in child._data && child._data[property] =
= data) | 241 if ("_data" in child && property in child._data && child._data[property] =
= data) |
242 return child; | 242 return child; |
243 return null; | 243 return null; |
244 } | 244 } |
245 }; | 245 }; |
LEFT | RIGHT |