[PATCH 4 of 4 website] downloads: replace inline scripts with an onload function
Sean Farley
sean at farley.io
Wed May 10 14:39:49 EDT 2017
Kevin Bullock <kbullock+mercurial at ringworld.org> writes:
> # HG changeset patch
> # User Kevin Bullock <kbullock+mercurial at ringworld.org>
> # Date 1494436785 18000
> # Wed May 10 12:19:45 2017 -0500
> # Node ID f194cff8d65af231bf2cb1780daaecef2b0ed3d3
> # Parent 130a8e2a946d71eaf031420fa43e9a0d0f7a6e8d
> downloads: replace inline scripts with an onload function
>
> diff --git a/static/js/download.js b/static/js/download.js
> --- a/static/js/download.js
> +++ b/static/js/download.js
> @@ -132,3 +132,21 @@ var Downloader = {
> return out;
> }
> };
> +
> +(function (document, window) {
> + var load = function () {
> + Downloader.init(sources);
> + var dl = Downloader.select();
> + var versElement = document.getElementById('download-version')
> + , descElement = document.getElementById('download-description');
Man, I hate javascript. Anyway, queued!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170510/424d92bc/attachment.sig>
More information about the Mercurial-devel
mailing list