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

Side by Side Diff: chrome/content/ui/firstRun.js

Issue 5137457368530944: Issue 1668 - Fixed direction on add-on pages for right-to-left scripts (Closed)
Patch Set: Used -(webkit|moz)-border-start Created Dec. 8, 2014, 8:51 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 | « no previous file | chrome/content/ui/i18n.js » ('j') | chrome/content/ui/i18n.js » ('J')
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 <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2014 Eyeo GmbH 3 * Copyright (C) 2006-2014 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 25 matching lines...) Expand all
36 { 36 {
37 feature: "tracking", 37 feature: "tracking",
38 homepage: "https://easylist.adblockplus.org/", 38 homepage: "https://easylist.adblockplus.org/",
39 title: "EasyPrivacy", 39 title: "EasyPrivacy",
40 url: "https://easylist-downloads.adblockplus.org/easyprivacy.txt" 40 url: "https://easylist-downloads.adblockplus.org/easyprivacy.txt"
41 } 41 }
42 ]; 42 ];
43 43
44 function onDOMLoaded() 44 function onDOMLoaded()
45 { 45 {
46 var locale = require("utils").Utils.appLocale;
47 document.documentElement.setAttribute("lang", locale);
48
49 // Set up URLs 46 // Set up URLs
50 var donateLink = E("donate"); 47 var donateLink = E("donate");
51 donateLink.href = Utils.getDocLink("donate"); 48 donateLink.href = Utils.getDocLink("donate");
52 49
53 var contributors = E("contributors"); 50 var contributors = E("contributors");
54 contributors.href = Utils.getDocLink("contributors"); 51 contributors.href = Utils.getDocLink("contributors");
55 52
56 setLinks("acceptableAdsExplanation", Utils.getDocLink("acceptable_ads_criter ia"), openFilters); 53 setLinks("acceptableAdsExplanation", Utils.getDocLink("acceptable_ads_criter ia"), openFilters);
57 setLinks("share-headline", Utils.getDocLink("contribute")); 54 setLinks("share-headline", Utils.getDocLink("contribute"));
58 55
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 { 241 {
245 var button = E("toggle-" + feature); 242 var button = E("toggle-" + feature);
246 if (isEnabled) 243 if (isEnabled)
247 button.classList.remove("off"); 244 button.classList.remove("off");
248 else 245 else
249 button.classList.add("off"); 246 button.classList.add("off");
250 } 247 }
251 248
252 document.addEventListener("DOMContentLoaded", onDOMLoaded, false); 249 document.addEventListener("DOMContentLoaded", onDOMLoaded, false);
253 })(); 250 })();
OLDNEW
« no previous file with comments | « no previous file | chrome/content/ui/i18n.js » ('j') | chrome/content/ui/i18n.js » ('J')

Powered by Google App Engine
This is Rietveld