WIP Workorder AH download
This commit is contained in:
@@ -939,12 +939,12 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
function downloadWorkorderAh(workorder_id) {
|
||||
async function downloadWorkorderAh(workorder_id) {
|
||||
if(!workorder_id) return false;
|
||||
|
||||
var filename;
|
||||
|
||||
fetch('<?=self::getUrl("RimoWorkorder", "downloadAh")?>')
|
||||
await fetch('<?=self::getUrl("RimoWorkorder", "downloadAh")?>?id=' + workorder_id)
|
||||
.then(resp => {
|
||||
const header = resp.headers.get("Content-disposition");
|
||||
let matches = header.match(/filename=['"]?([^'"]+)/i);
|
||||
@@ -970,7 +970,6 @@
|
||||
})
|
||||
.catch(() => window.notify("Fehler beim Download des AH-Blatts"));
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
<?php include(realpath(dirname(__FILE__)."/../../$mfLayoutPackage")."/footer.php"); ?>
|
||||
|
||||
Reference in New Issue
Block a user