From 6ba266b2e95af00cb3f131423327e438468b62af Mon Sep 17 00:00:00 2001 From: Janis Steiner Date: Sun, 8 Dec 2024 13:21:16 +0000 Subject: [PATCH] . --- sys0-code/test/overview.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys0-code/test/overview.php b/sys0-code/test/overview.php index 9937522..a404b1d 100644 --- a/sys0-code/test/overview.php +++ b/sys0-code/test/overview.php @@ -289,14 +289,11 @@ if (own_id == printer.userid || cancel_all == "1") { `; // Replace the content around the iframe - while (iframeParent.firstChild) { + while (iframeParent.firstChild && printerCard.firstChild !== iframe) { iframeParent.removeChild(iframeParent.firstChild); } - // Append the new content and reattach the iframe - iframeParent.appendChild(tempContainer.firstChild); - iframeParent.appendChild(iframe); - + printerCard.insertBefore(contentContainer, iframe); }else{ printerCard.innerHTML = `