Add automatic download excel files

This commit is contained in:
2023-06-01 20:48:53 +02:00
parent 0b258595f9
commit 34b4cb6477
7 changed files with 50 additions and 11 deletions

View File

@@ -12,7 +12,11 @@ function excelFiles(selectedFiles, compare) {
dataType: 'json',
success: function(data){
if (data.success) {
alert("Se ha generado el archivo "+data.file);
if (data.output == "local") {
alert("Se ha generado el archivo " + data.file);
} else {
window.open('/download/' + data.file, "_blank");
}
} else {
alert(data.file);
}