| 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 function reload() { | 5 function reload() { |
| 6 if (document.getElementById('helpTooltip')) | 6 if (document.getElementById('helpTooltip')) |
| 7 return; | 7 return; |
| 8 history.go(0); | 8 history.go(0); |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 var helpEls = document.getElementsByClassName('help'); | 67 var helpEls = document.getElementsByClassName('help'); |
| 68 | 68 |
| 69 for (var i = 0, helpEl; helpEl = helpEls[i]; i++) { | 69 for (var i = 0, helpEl; helpEl = helpEls[i]; i++) { |
| 70 helpEl.onmouseover = handleHelpTooltipMouseOver; | 70 helpEl.onmouseover = handleHelpTooltipMouseOver; |
| 71 helpEl.onmouseout = handleHelpTooltipMouseOut; | 71 helpEl.onmouseout = handleHelpTooltipMouseOut; |
| 72 } | 72 } |
| 73 } | 73 } |
| 74 | 74 |
| 75 document.addEventListener('DOMContentLoaded', function () { | 75 document.addEventListener('DOMContentLoaded', function () { |
| 76 // This is the javascript code that processes the template: | 76 // This is the javascript code that processes the template: |
| 77 var input = new JsEvalContext(templateData); | 77 var input = new JsEvalContext(loadTimeData.getValue('jstemplateData')); |
| 78 var output = document.getElementById('t'); | 78 var output = document.getElementById('t'); |
| 79 jstProcess(input, output); | 79 jstProcess(input, output); |
| 80 | 80 |
| 81 enableHelpTooltips(); | 81 enableHelpTooltips(); |
| 82 }); | 82 }); |
| 83 | 83 |
| OLD | NEW |