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

Delta Between Two Patch Sets: html/static/js/IESettings.js

Issue 11043057: First run page triggering (Closed)
Left Patch Set: Created July 11, 2013, 9:49 a.m.
Right Patch Set: Minor refactoring. Renaming and a small cleanup. Created July 26, 2013, 12:05 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | src/engine/main.cpp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
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 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld