mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix support log x button still downloading
This commit is contained in:
parent
8bad0fb0a9
commit
c5c025ca8c
@ -384,18 +384,21 @@
|
|||||||
if (x) {
|
if (x) {
|
||||||
x.remove()
|
x.remove()
|
||||||
}
|
}
|
||||||
bootbox.alert({
|
bootbox.confirm({
|
||||||
title: "{{ translate('notify', 'downloadLogs', data['lang']) }}",
|
title: "{{ translate('notify', 'downloadLogs', data['lang']) }}",
|
||||||
message: "{{ translate('notify', 'finishedPreparing', data['lang']) }}",
|
message: "{{ translate('notify', 'finishedPreparing', data['lang']) }}",
|
||||||
buttons: {
|
buttons: {
|
||||||
ok: {
|
confirm: {
|
||||||
label: 'Download',
|
label: 'Download',
|
||||||
className: 'btn-info'
|
className: 'btn-info'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
callback: function () {
|
callback: function (result) {
|
||||||
console.log("in callback")
|
if (result){
|
||||||
location.href = "/panel/download_support_package";
|
location.href = "/panel/download_support_package";
|
||||||
|
}else {
|
||||||
|
bootbox.close;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user