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

Unified Diff: html/static/js/IESettings.js

Issue 9998007: Initial libadblockplus integration (Closed)
Patch Set: More integration, reflecting latest libadblockplus changes Created April 9, 2013, 5:48 a.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 | « Shared/PluginUserSettings.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: html/static/js/IESettings.js
===================================================================
--- a/html/static/js/IESettings.js
+++ b/html/static/js/IESettings.js
@@ -35,12 +35,22 @@
setElementText("localeBlockingLabel", "settings-blocking-label");
setElementText("localeBlockingDescription", "settings-blocking-description");
- setElementText("localeLanguageLabel", "settings-language-label");
setElementText("manageExceptions", "settings-exceptions-manage-label");
setElementText("addDomain", "settings-exceptions-add-label");
setElementText("removeDomains", "settings-exceptions-remove-label");
var optionsLanguage = document.getElementById("language");
+
+ var languageCount = UserSettings().GetLanguageCount();
+ for(var i = 0; i < languageCount; i++)
+ {
+ var el = document.createElement("option");
+ el.text = UserSettings().GetLanguageTitleByIndex(i);
+ el.value = UserSettings().GetLanguageByIndex(i);
+
+ optionsLanguage.add(el, 0);
+ }
+
addListener(optionsLanguage, "change", function ()
{
UserSettings().SetLanguage(optionsLanguage[optionsLanguage.selectedIndex].value);
« no previous file with comments | « Shared/PluginUserSettings.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld