mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-25 12:22:49 +02:00
Merge pull request #918 from JeLuF/downloadall
Download all: Fix to download more than 10 images
This commit is contained in:
commit
7b85e50604
@ -1163,14 +1163,15 @@ clearAllPreviewsBtn.addEventListener('click', (e) => { shiftOrConfirm(e, "Clear
|
||||
})})
|
||||
|
||||
saveAllImagesBtn.addEventListener('click', (e) => {
|
||||
let i = 0
|
||||
document.querySelectorAll(".imageTaskContainer").forEach(container => {
|
||||
let req = htmlTaskMap.get(container)
|
||||
container.querySelectorAll(".imgContainer img").forEach(img => {
|
||||
if (img.closest('.imgItem').style.display === 'none') {
|
||||
return
|
||||
}
|
||||
|
||||
onDownloadImageClick(req.reqBody, img)
|
||||
setTimeout(() => {onDownloadImageClick(req, img)}, i*200)
|
||||
i = i+1
|
||||
})
|
||||
})
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user