comparison static/js/download.js @ 313:1de4a7a49d94

Link to download page when javascript disabled or OS not detected. (issue2192)
author Laurens Holst <laurens.hg@grauw.nl>
date Sun, 16 May 2010 14:47:03 +0200
parents b7d326bc57f9
children 657b465caaa2
comparison
equal deleted inserted replaced
311:91aa10eeb6f0 313:1de4a7a49d94
24 os_detection: function() { 24 os_detection: function() {
25 document.write(this.parse_os()); 25 document.write(this.parse_os());
26 }, 26 },
27 27
28 os_link: function() { 28 os_link: function() {
29 document.location.href = this.downloads[this.parse_os()]; 29 var os = this.parse_os();
30 if (this.downloads[os]) {
31 document.location.href = this.downloads[os];
32 return false;
33 }
34 return true;
30 }, 35 },
31 36
32 register_download:function(type, url) { 37 register_download:function(type, url) {
33 this.downloads[type] = url; 38 this.downloads[type] = url;
34 } 39 }