diff --git a/sys0-code/test/overview.php b/sys0-code/test/overview.php index 060332d..9937522 100644 --- a/sys0-code/test/overview.php +++ b/sys0-code/test/overview.php @@ -257,25 +257,19 @@ function updatePrinterData(data) { if(printer.view==0 || printer.view==2){ if (own_id == printer.userid || cancel_all == "1") { - // Get the current iframe + // Extract the iframe const iframe = printerCard.querySelector('iframe'); + const iframeParent = iframe.parentNode; - // Store necessary iframe attributes if needed - const iframeSrc = iframe ? iframe.src : null; + // Create a temporary container for the new content + const tempContainer = document.createElement('div'); - // Remove iframe temporarily - if (iframe) { - printerCard.removeChild(iframe); - } - - // Update the innerHTML, excluding the iframe initially - printerCard.innerHTML = ` + // Set the new content, excluding the iframe + tempContainer.innerHTML = `