Mercurial > hg-website
comparison static/js/download.js @ 482:1188817fdf3a
downloads: indent onload function 4 spaces like the rest of the code
author | Kevin Bullock <kbullock+mercurial@ringworld.org> |
---|---|
date | Sun, 14 May 2017 22:01:40 -0500 |
parents | 23ff698c5dbb |
children | 0978d4880577 |
comparison
equal
deleted
inserted
replaced
481:23ff698c5dbb | 482:1188817fdf3a |
---|---|
132 return out; | 132 return out; |
133 } | 133 } |
134 }; | 134 }; |
135 | 135 |
136 (function (document, window) { | 136 (function (document, window) { |
137 var load = function () { | 137 var load = function () { |
138 Downloader.init(sources); | 138 Downloader.init(sources); |
139 window.dl = Downloader.select(); | 139 window.dl = Downloader.select(); |
140 var versElement = document.getElementById('download-version') | 140 var versElement = document.getElementById('download-version') |
141 , descElement = document.getElementById('download-description'); | 141 , descElement = document.getElementById('download-description'); |
142 versElement.appendChild(document.createTextNode(dl.attr('version'))); | 142 versElement.appendChild(document.createTextNode(dl.attr('version'))); |
143 descElement.appendChild(document.createTextNode(dl.attr('desc'))); | 143 descElement.appendChild(document.createTextNode(dl.attr('desc'))); |
144 } | 144 } |
145 | 145 |
146 if (document.readyState !== 'complete') { | 146 if (document.readyState !== 'complete') { |
147 document.addEventListener('DOMContentLoaded', load); | 147 document.addEventListener('DOMContentLoaded', load); |
148 return; | 148 return; |
149 } | 149 } |
150 | 150 |
151 load(); | 151 load(); |
152 })(document, window); | 152 })(document, window); |