diff --git a/ui/media/js/main.js b/ui/media/js/main.js index e2afc16d..55c42af6 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -319,15 +319,15 @@ function showImages(reqBody, res, outputContainer, livePreview) { imageItemElem.querySelector('.img_bottom_label').innerText = `${this.naturalWidth} x ${this.naturalHeight}` }) - const imageExpandBtn = imageItemElem.querySelector('.imgExpandBtn') - imageExpandBtn.addEventListener('click', function() { - imageModal(imageElem.src) - }) - const imageInfo = imageItemElem.querySelector('.imgItemInfo') imageInfo.style.visibility = (livePreview ? 'hidden' : 'visible') if ('seed' in result && !imageElem.hasAttribute('data-seed')) { + const imageExpandBtn = imageItemElem.querySelector('.imgExpandBtn') + imageExpandBtn.addEventListener('click', function() { + imageModal(imageElem.src) + }) + const req = Object.assign({}, reqBody, { seed: result?.seed || reqBody.seed })