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

Unified Diff: firstRun.js

Issue 6432313504169984: Issue 1663 - Various Firefox-related changes of the first-run page (Closed)
Patch Set: Created Jan. 6, 2015, 10:19 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « firstRun.html ('k') | i18n.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: firstRun.js
===================================================================
--- a/firstRun.js
+++ b/firstRun.js
@@ -14,16 +14,21 @@
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";
(function()
{
+ function E(id)
+ {
+ return document.getElementById(id);
+ }
+
// Load subscriptions for features
var featureSubscriptions = [
{
feature: "malware",
homepage: "http://malwaredomains.com/",
title: "Malware Domains",
url: "https://easylist-downloads.adblockplus.org/malwaredomains_full.txt"
},
@@ -109,17 +114,17 @@
if (message.type == "subscriptions.listen")
{
updateToggleButtons();
updateSocialLinks();
}
});
ext.backgroundPage.sendMessage({
type: "subscriptions.listen",
- filter: ["added", "removed", "disabled"]
+ filter: ["added", "removed", "updated", "disabled"]
});
}
function initToggleSubscriptionButton(featureSubscription)
{
var feature = featureSubscription.feature;
var element = E("toggle-" + feature);
« no previous file with comments | « firstRun.html ('k') | i18n.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld