# HG changeset patch # User Laurens Holst # Date 1274014023 -7200 # Node ID 1de4a7a49d94e81f20a8aab077b1eb4c4d5e3d83 # Parent 91aa10eeb6f02fb9b3119e826652d0f726b59d86 Link to download page when javascript disabled or OS not detected. (issue2192) diff -r 91aa10eeb6f0 -r 1de4a7a49d94 static/js/download.js --- a/static/js/download.js Fri May 14 09:53:31 2010 +0200 +++ b/static/js/download.js Sun May 16 14:47:03 2010 +0200 @@ -26,7 +26,12 @@ }, os_link: function() { - document.location.href = this.downloads[this.parse_os()]; + var os = this.parse_os(); + if (this.downloads[os]) { + document.location.href = this.downloads[os]; + return false; + } + return true; }, register_download:function(type, url) { diff -r 91aa10eeb6f0 -r 1de4a7a49d94 templates/base.html --- a/templates/base.html Fri May 14 09:53:31 2010 +0200 +++ b/templates/base.html Sun May 16 14:47:03 2010 +0200 @@ -58,7 +58,7 @@
{% block sidebar %} - + Download now Mercurial {{ downloads['current'] }}