Improve add-on products

This commit is contained in:
Raphael Michel
2017-03-19 14:33:45 +01:00
parent 5bcfb958f0
commit b52f2f5a9e
36 changed files with 802 additions and 131 deletions

View File

@@ -11,15 +11,16 @@ function async_dl_check() {
'success': async_dl_check_callback,
'error': async_dl_check_error,
'context': this,
'dataType': 'json'
}
);
}
function async_dl_check_callback(data, jqXHR, status) {
"use strict";
if (data == 1) {
if (data.ready && data.redirect) {
$("body").data('ajaxing', false);
location.href = async_dl_url;
location.href = data.redirect;
waitingDialog.hide();
return;
}