.
This commit is contained in:
@@ -289,14 +289,11 @@ if (own_id == printer.userid || cancel_all == "1") {
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
// Replace the content around the iframe
|
// Replace the content around the iframe
|
||||||
while (iframeParent.firstChild) {
|
while (iframeParent.firstChild && printerCard.firstChild !== iframe) {
|
||||||
iframeParent.removeChild(iframeParent.firstChild);
|
iframeParent.removeChild(iframeParent.firstChild);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Append the new content and reattach the iframe
|
printerCard.insertBefore(contentContainer, iframe);
|
||||||
iframeParent.appendChild(tempContainer.firstChild);
|
|
||||||
iframeParent.appendChild(iframe);
|
|
||||||
|
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
printerCard.innerHTML = `
|
printerCard.innerHTML = `
|
||||||
|
|||||||
Reference in New Issue
Block a user