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

Side by Side Diff: options.js

Issue 29322993: Issue 2677 - Reset subscriptions.xml to serve as mere test data (Closed)
Patch Set: Created July 29, 2015, 4:32 p.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 | « README.md ('k') | subscriptions.xml » ('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 Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 recommendation.isAdsType = false; 312 recommendation.isAdsType = false;
313 recommendation.isPopular = false; 313 recommendation.isPopular = false;
314 var prefix = element.getAttribute("prefixes"); 314 var prefix = element.getAttribute("prefixes");
315 if (prefix) 315 if (prefix)
316 { 316 {
317 var prefix = element.getAttribute("prefixes").replace(/,/g, "_"); 317 var prefix = element.getAttribute("prefixes").replace(/,/g, "_");
318 subscription.title = ext.i18n.getMessage("options_language_" + prefix) ; 318 subscription.title = ext.i18n.getMessage("options_language_" + prefix) ;
319 recommendation.isAdsType = true; 319 recommendation.isAdsType = true;
320 } 320 }
321 else 321 else
322 {
322 subscription.title = element.getAttribute("specialization"); 323 subscription.title = element.getAttribute("specialization");
323
324 if (element.getAttribute("popular"))
325 recommendation.isPopular = true; 324 recommendation.isPopular = true;
325 }
326 326
327 recommendationsMap[subscription.url] = recommendation; 327 recommendationsMap[subscription.url] = recommendation;
328 updateSubscription(subscription); 328 updateSubscription(subscription);
329 } 329 }
330 }, false); 330 }, false);
331 request.send(null); 331 request.send(null);
332 } 332 }
333 333
334 function onClick(e) 334 function onClick(e)
335 { 335 {
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 filter: ["added", "loaded", "removed"] 732 filter: ["added", "loaded", "removed"]
733 }); 733 });
734 ext.backgroundPage.sendMessage( 734 ext.backgroundPage.sendMessage(
735 { 735 {
736 type: "subscriptions.listen", 736 type: "subscriptions.listen",
737 filter: ["added", "disabled", "homepage", "removed", "title"] 737 filter: ["added", "disabled", "homepage", "removed", "title"]
738 }); 738 });
739 739
740 window.addEventListener("DOMContentLoaded", onDOMLoaded, false); 740 window.addEventListener("DOMContentLoaded", onDOMLoaded, false);
741 })(); 741 })();
OLDNEW
« no previous file with comments | « README.md ('k') | subscriptions.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld