mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 10:31:17 -08:00
Use onAfterUiUpdate where possible
This commit is contained in:
parent
bc53ecf298
commit
dc7a1bbb1c
7 changed files with 7 additions and 9 deletions
|
|
@ -170,7 +170,7 @@ function modalTileImageToggle(event) {
|
|||
event.stopPropagation();
|
||||
}
|
||||
|
||||
onUiUpdate(function() {
|
||||
onAfterUiUpdate(function() {
|
||||
var fullImg_preview = gradioApp().querySelectorAll('.gradio-gallery > div > img');
|
||||
if (fullImg_preview != null) {
|
||||
fullImg_preview.forEach(setupImageForLightbox);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue