Patchwork [1,of,3,website] downloads: fix download on front page since c65b81353b8f

login
register
mail settings
Submitter Kevin Bullock
Date July 5, 2017, 7:27 p.m.
Message ID <23ff698c5dbb8d205fb8.1499282830@ingalls.local>
Download mbox | patch
Permalink /patch/22013/
State Accepted
Headers show

Comments

Kevin Bullock - July 5, 2017, 7:27 p.m.
# HG changeset patch
# User Kevin Bullock <kbullock+mercurial@ringworld.org>
# Date 1499282568 18000
#      Wed Jul 05 14:22:48 2017 -0500
# Node ID 23ff698c5dbb8d205fb81230b4e41db837cfb624
# Parent  6f3cfd6dcc28ac0d2aa35f19e48fe221293f16b7
downloads: fix download on front page since c65b81353b8f

Patch

diff --git a/static/js/download.js b/static/js/download.js
--- a/static/js/download.js
+++ b/static/js/download.js
@@ -136,7 +136,7 @@  var Downloader = {
 (function (document, window) {
   var load = function () {
     Downloader.init(sources);
-    var dl = Downloader.select();
+    window.dl = Downloader.select();
     var versElement = document.getElementById('download-version')
       , descElement = document.getElementById('download-description');
     versElement.appendChild(document.createTextNode(dl.attr('version')));