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

Side by Side Diff: html/static/js/IESettings.js

Issue 11043057: First run page triggering (Closed)
Patch Set: All changes Created July 25, 2013, 2:02 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 | src/engine/main.cpp » ('j') | src/engine/main.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 function init() 1 function init()
2 { 2 {
3 try 3 try
4 { 4 {
5 initLanguageSettings(); 5 initLanguageSettings();
6 6
7 initDomainSettings(); 7 initDomainSettings();
8 } 8 }
9 catch (err) 9 catch (err)
10 { 10 {
11 //alert("err: " + err); 11 //alert("err: " + err);
12 } 12 }
13 } 13 }
14 14
15 function setElementText(id, key) 15 function setElementText(id, key)
16 { 16 {
17 var el = document.getElementById(id); 17 var el = document.getElementById(id);
18 if (el) 18 if (el)
19 { 19 {
20 var text = UserSettings().GetMessage(key); 20 var text = UserSettings().GetMessage("settings", key);
21 if (text) 21 if (text)
22 { 22 {
23 el.innerText = text; 23 el.innerText = text;
24 } 24 }
25 } 25 }
26 } 26 }
27 27
28 function initLanguageSettings() 28 function initLanguageSettings()
29 { 29 {
30 setElementText("title", "settings-heading"); 30 setElementText("title", "settings-title");
31 31
32 setElementText("localeLanguageLabel", "settings-language-label"); 32 setElementText("localeLanguageLabel", "settings-language-label");
33 setElementText("localeLanguageDescription", "settings-language-description"); 33 setElementText("localeLanguageDescription", "settings-language-description");
34 34
35 setElementText("localeBlockingLabel", "settings-blocking-label"); 35 setElementText("localeBlockingLabel", "settings-blocking-label");
36 setElementText("localeBlockingDescription", "settings-blocking-description"); 36 setElementText("localeBlockingDescription", "settings-blocking-description");
37 37
38 setElementText("manageExceptions", "settings-exceptions-manage-label"); 38 setElementText("manageExceptions", "settings-exceptions-manage-label");
39 setElementText("addDomain", "settings-exceptions-add-label"); 39 setElementText("addDomain", "settings-exceptions-add-label");
40 setElementText("removeDomains", "settings-exceptions-remove-label"); 40 setElementText("removeDomains", "settings-exceptions-remove-label");
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 { 139 {
140 optionsDomain.remove(removeOptions[i]); 140 optionsDomain.remove(removeOptions[i]);
141 } 141 }
142 }, false); 142 }, false);
143 } 143 }
144 144
145 window.UserSettings = function() 145 window.UserSettings = function()
146 { 146 {
147 return window.Settings; 147 return window.Settings;
148 } 148 }
OLDNEW
« no previous file with comments | « no previous file | src/engine/main.cpp » ('j') | src/engine/main.cpp » ('J')

Powered by Google App Engine
This is Rietveld