diff --git a/docs/index.html b/docs/index.html index 55b29b35..e5d2539b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -214,21 +214,24 @@ while (betaReleaseNb < data.length) { if (data[betaReleaseNb].prerelease) break; betaReleaseNb++; - } if (betaReleaseNb > data.length) betaReleaseNb = data.length; - if (data[betaReleaseNb].prerelease) { - for (var i=0; i < data[betaReleaseNb].assets.length; i++) { - if (data[betaReleaseNb].assets[i].name == "3P.zip") { - $('#beta_link').attr('href', data[betaReleaseNb].assets[i].browser_download_url); - $('#beta_text').html(data[betaReleaseNb].tag_name); - } else if (data[betaReleaseNb].assets[i].name == "3P_x64.zip") { - $('#beta64_link').attr('href', data[betaReleaseNb].assets[i].browser_download_url); - $('#beta64_text').html(data[betaReleaseNb].tag_name); - } - } - } + + if (betaReleaseNb <= stableReleaseNb) { + $('#betadownload_div').show(); + if (data[betaReleaseNb].prerelease) { + for (var i=0; i < data[betaReleaseNb].assets.length; i++) { + if (data[betaReleaseNb].assets[i].name == "3P.zip") { + $('#beta_link').attr('href', data[betaReleaseNb].assets[i].browser_download_url); + $('#beta_text').html(data[betaReleaseNb].tag_name); + } else if (data[betaReleaseNb].assets[i].name == "3P_x64.zip") { + $('#beta64_link').attr('href', data[betaReleaseNb].assets[i].browser_download_url); + $('#beta64_text').html(data[betaReleaseNb].tag_name); + } + } + } + } // count the total of downloads var count = 0; @@ -286,45 +289,48 @@