use setTimeout instead of mootools pass
parent
92361210ce
commit
1f3fd93296
|
@ -46,7 +46,7 @@ function exportResponse(respObj, respText) {
|
||||||
$j('#exportProgressTicker').text(respObj.message);
|
$j('#exportProgressTicker').text(respObj.message);
|
||||||
} else {
|
} else {
|
||||||
$j('#exportProgressTicker').text(exportSucceededString);
|
$j('#exportProgressTicker').text(exportSucceededString);
|
||||||
startDownload.pass(decodeURIComponent(respObj.exportFile)).delay(1500);
|
setTimeout(startDownload, 1500, decodeURIComponent(respObj.exportFile));
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ function getEventDetailModal(eid) {
|
||||||
function initPage() {
|
function initPage() {
|
||||||
configureExportButton(this);
|
configureExportButton(this);
|
||||||
if ( exportReady ) {
|
if ( exportReady ) {
|
||||||
startDownload.pass(exportFile).delay(1500);
|
setTimeout(startDownload, 1500, exportFile);
|
||||||
}
|
}
|
||||||
document.getElementById('exportButton').addEventListener('click', exportEvents);
|
document.getElementById('exportButton').addEventListener('click', exportEvents);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue