am 1e94081f: am c264f9eb: am 912ed02b: am 7c05b69c: docs: add warning message for adt when on 32-bit os

* commit '1e94081f55d015f89409adeacf9ea531a30465fe':
  docs: add warning message for adt when on 32-bit os
This commit is contained in:
Scott Main 2012-11-14 15:20:08 -08:00 committed by Android Git Automerger
commit e94ed26cc4
1 changed files with 24 additions and 2 deletions

View File

@ -325,16 +325,38 @@ var:sdk.linux_download
/* set up primary adt download button */
$('#download-bundle-button').show();
$('#download-bundle-button').append("Download the SDK <br/><span class='small'>ADT Bundle for " + os + "</span>");
$('#download-bundle-button').click(function() {return onDownload(this,true);}).attr('href', $bundlelink.attr('href'));
$('#download-bundle-button').click(function() {return onDownloadBouncer(this,true);}).attr('href', $bundlelink.attr('href'));
/* set up sdk tools only button */
$('#download-tools-button').show();
$('#download-tools-button').append("Download the SDK Tools for " + os);
$('#download-tools-button').click(function() {return onDownload(this,true);}).attr('href', $toolslink.attr('href'));
$('#download-tools-button').click(function() {return onDownload(this,false);}).attr('href', $toolslink.attr('href'));
} else {
$('.pax').show();
}
function onDownloadBouncer(link, button) {
if (navigator.userAgent.indexOf("WOW64") != -1 ||
navigator.userAgent.indexOf("Win64") != -1 ) {
$("#naMessage").show();
$("#warningCancel").click(function() {
$('#naMessage').hide();
onDownload(link,button);
});
$("#warningOk").click(function() {
$('#naMessage').hide();
onDownload($("#download-tools-button").get(),false);
});
return false;
} else {
return onDownload(link,button);
}
}
function onDownload(link, button) {
if (button) {