changeset 479:4b88b3c4fc80

downloads: initialize downloader from sources.js earlier c65b81353b8f inadvertently broke the /downloads page by moving the call to Downloader.init(sources) later in the rendering process, after the downloads list has already been written. As a stopgap, we introduce an earlier call to initialize the versions before attempting to render the list. Future changes will move this inline script into an onload function.
author Kevin Bullock <kbullock+mercurial@ringworld.org>
date Sun, 14 May 2017 21:47:27 -0500
parents c65b81353b8f
children 6f3cfd6dcc28
files templates/downloads/index.html
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/templates/downloads/index.html	Wed May 10 12:19:45 2017 -0500
+++ b/templates/downloads/index.html	Sun May 14 21:47:27 2017 -0500
@@ -4,6 +4,7 @@
 
     <h1>Mercurial downloads</h1>
     <script language="javascript">
+        Downloader.init(sources);
         var versions = Downloader.versions();
         var more = Downloader.maxversions &&
                    versions.length > Downloader.maxversions;