mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-11 04:58:29 +02:00
Download all: Fix to download more than 10 images
https://discord.com/channels/1014774730907209781/1021695193499582494/1077218966205902860
This commit is contained in:
parent
2f0e8a8a4a
commit
f80ecbde71
@ -1163,14 +1163,15 @@ clearAllPreviewsBtn.addEventListener('click', (e) => { shiftOrConfirm(e, "Clear
|
|||||||
})})
|
})})
|
||||||
|
|
||||||
saveAllImagesBtn.addEventListener('click', (e) => {
|
saveAllImagesBtn.addEventListener('click', (e) => {
|
||||||
|
let i = 0
|
||||||
document.querySelectorAll(".imageTaskContainer").forEach(container => {
|
document.querySelectorAll(".imageTaskContainer").forEach(container => {
|
||||||
let req = htmlTaskMap.get(container)
|
let req = htmlTaskMap.get(container)
|
||||||
container.querySelectorAll(".imgContainer img").forEach(img => {
|
container.querySelectorAll(".imgContainer img").forEach(img => {
|
||||||
if (img.closest('.imgItem').style.display === 'none') {
|
if (img.closest('.imgItem').style.display === 'none') {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
setTimeout(() => {onDownloadImageClick(req, img)}, i*200)
|
||||||
onDownloadImageClick(req.reqBody, img)
|
i = i+1
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user