Merge pull request #1018 from AssassinJN/patch-3

remove task from dome when removing images
This commit is contained in:
cmdr2 2023-03-16 11:46:31 +05:30 committed by GitHub
commit 57c85a64c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -302,7 +302,7 @@ function showImages(reqBody, res, outputContainer, livePreview) {
}
if(allHidden === true) {
const req = htmlTaskMap.get(parentTaskContainer)
if(!req.isProcessing || req.batchesDone == req.batchCount) {parentTaskContainer.classList.add("displayNone")}
if(!req.isProcessing || req.batchesDone == req.batchCount) {parentTaskContainer.parentNode.removeChild(parentTaskContainer)}
}
})
})