OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 <include src="../../../ui/webui/resources/js/util.js"></include> | 5 <include src="../../../ui/webui/resources/js/util.js"> |
6 | 6 |
7 function reload() { | 7 function reload() { |
8 if ($('helpTooltip')) | 8 if ($('helpTooltip')) |
9 return; | 9 return; |
10 history.go(0); | 10 history.go(0); |
11 } | 11 } |
12 | 12 |
13 function formatNumber(str) { | 13 function formatNumber(str) { |
14 str += ''; | 14 str += ''; |
15 if (str == '0') { | 15 if (str == '0') { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 document.addEventListener('DOMContentLoaded', function() { | 76 document.addEventListener('DOMContentLoaded', function() { |
77 // This is the javascript code that processes the template: | 77 // This is the javascript code that processes the template: |
78 var input = new JsEvalContext(loadTimeData.getValue('jstemplateData')); | 78 var input = new JsEvalContext(loadTimeData.getValue('jstemplateData')); |
79 var output = $('t'); | 79 var output = $('t'); |
80 jstProcess(input, output); | 80 jstProcess(input, output); |
81 | 81 |
82 enableHelpTooltips(); | 82 enableHelpTooltips(); |
83 }); | 83 }); |
84 | 84 |
OLD | NEW |