| OLD | NEW |
| 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 this._list.ensureElementIsVisible(node); | 242 this._list.ensureElementIsVisible(node); |
| 243 this._listener(); | 243 this._listener(); |
| 244 } | 244 } |
| 245 break; | 245 break; |
| 246 } | 246 } |
| 247 case "subscription.title": | 247 case "subscription.title": |
| 248 case "subscription.disabled": | 248 case "subscription.disabled": |
| 249 case "subscription.homepage": | 249 case "subscription.homepage": |
| 250 case "subscription.lastDownload": | 250 case "subscription.lastDownload": |
| 251 case "subscription.downloadStatus": | 251 case "subscription.downloadStatus": |
| 252 case "subscription.downloading": |
| 252 { | 253 { |
| 253 let subscriptionNode = Templater.getNodeForData(this._list, "subscriptio
n", item); | 254 let subscriptionNode = Templater.getNodeForData(this._list, "subscriptio
n", item); |
| 254 if (subscriptionNode) | 255 if (subscriptionNode) |
| 255 { | 256 { |
| 256 let data = Templater.getDataForNode(subscriptionNode); | 257 let data = Templater.getDataForNode(subscriptionNode); |
| 257 data.downloading = Synchronizer.isExecuting(item.url); | 258 data.downloading = Synchronizer.isExecuting(item.url); |
| 258 data.upgradeRequired = ListManager.isUpgradeRequired(item); | 259 data.upgradeRequired = ListManager.isUpgradeRequired(item); |
| 259 Templater.update(this._template, subscriptionNode); | 260 Templater.update(this._template, subscriptionNode); |
| 260 | 261 |
| 261 if (!document.commandDispatcher.focusedElement) | 262 if (!document.commandDispatcher.focusedElement) |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 if (subscription instanceof DownloadableSubscription && subscription.requiredV
ersion) | 337 if (subscription instanceof DownloadableSubscription && subscription.requiredV
ersion) |
| 337 { | 338 { |
| 338 let {addonVersion} = require("info"); | 339 let {addonVersion} = require("info"); |
| 339 if (Services.vc.compare(subscription.requiredVersion, addonVersion) > 0) | 340 if (Services.vc.compare(subscription.requiredVersion, addonVersion) > 0) |
| 340 return true; | 341 return true; |
| 341 } | 342 } |
| 342 return false; | 343 return false; |
| 343 }; | 344 }; |
| 344 | 345 |
| 345 window.addEventListener("load", ListManager.init, false); | 346 window.addEventListener("load", ListManager.init, false); |
| OLD | NEW |