diff options
author | guaneec <guaneec@users.noreply.github.com> | 2022-10-08 08:01:34 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-08 12:47:24 +0000 |
commit | 32e428ff19c28c87bb2ed362316b928b372e3a70 (patch) | |
tree | 732fd6998d226eb4c9913e206e66dd0c8062b40a /javascript/imageviewer.js | |
parent | 772db721a52da374d627b60994222051f26c27a7 (diff) | |
download | stable-diffusion-webui-gfx803-32e428ff19c28c87bb2ed362316b928b372e3a70.tar.gz stable-diffusion-webui-gfx803-32e428ff19c28c87bb2ed362316b928b372e3a70.tar.bz2 stable-diffusion-webui-gfx803-32e428ff19c28c87bb2ed362316b928b372e3a70.zip |
Remove duplicate event listeners
Diffstat (limited to 'javascript/imageviewer.js')
-rw-r--r-- | javascript/imageviewer.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/javascript/imageviewer.js b/javascript/imageviewer.js index 3a0baac8..4c0e8f4b 100644 --- a/javascript/imageviewer.js +++ b/javascript/imageviewer.js @@ -86,6 +86,9 @@ function showGalleryImage(){ if(fullImg_preview != null){ fullImg_preview.forEach(function function_name(e) { + if (e.dataset.modded) + return; + e.dataset.modded = true; if(e && e.parentElement.tagName == 'DIV'){ e.style.cursor='pointer' |