OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |