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: Injecting an object for localization Created July 20, 2013, 10:41 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
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-title"); 30 setElementText("title", "settings-title");
(...skipping 108 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 | « .hgsubstate ('k') | src/plugin/PluginTabBase.cpp » ('j') | src/plugin/PluginUserSettings.cpp » ('J')

Powered by Google App Engine
This is Rietveld