From 132a921cbae2d10d777dd0ff33a77575c468d0f1 Mon Sep 17 00:00:00 2001 From: Gemini CLI Date: Sat, 16 May 2026 17:04:52 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Fehlende=20window.printDiv=20Funktion=20?= =?UTF-8?q?erg=C3=A4nzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/storage_locations.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/storage_locations.php b/src/storage_locations.php index 2f41bf0..09d079b 100644 --- a/src/storage_locations.php +++ b/src/storage_locations.php @@ -353,6 +353,28 @@ window.renderAllBarcodes = function() { container.appendChild(col); }); } + +window.printDiv = function(divId) { + var printContents = document.getElementById(divId).innerHTML; + var originalContents = document.body.innerHTML; + document.body.innerHTML = ` + + + `; + + setTimeout(function() { + window.print(); + document.body.innerHTML = originalContents; + window.location.reload(); + }, 500); +}