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

Unified Diff: options.js

Issue 8403145: First attempt at creating a first-run page (Closed)
Patch Set: Now with two sets of Share buttons Created Sept. 28, 2012, 8:01 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 | « i18n.js ('k') | popup.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: options.js
===================================================================
--- a/options.js
+++ b/options.js
@@ -3,18 +3,16 @@ var imports = ["FilterStorage", "FilterN
"DownloadableSubscription", "Filter", "WhitelistFilter",
"Synchronizer", "Prefs", "Utils", "require"];
for (var i = 0; i < imports.length; i++)
window[imports[i]] = backgroundPage[imports[i]];
// Loads options from localStorage and sets UI elements accordingly
function loadOptions()
{
- loadI18nStrings();
-
// Set page title to i18n version of "Adblock Plus Options"
document.title = chrome.i18n.getMessage("options");
// Set links
$("#acceptableAdsLink").attr("href", Prefs.subscriptions_exceptionsurl);
$("#acceptableAdsDocs").attr("href", Prefs.documentation_link.replace(/%LINK%/g, "acceptable_ads").replace(/%LANG%/g, Utils.appLocale));
// Add event listeners
« no previous file with comments | « i18n.js ('k') | popup.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld