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

* commit 'c264f9eb78e2253e91cc0dca11cdf354d341df96':
  docs: add warning message for adt when on 32-bit os
This commit is contained in:
Scott Main 2012-11-14 15:17:57 -08:00 committed by Android Git Automerger
commit 1e94081f55

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) {