mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-06 09:12:39 -08:00
added event listener for the image gallery modal; moved js to separate file
This commit is contained in:
parent
81f2575df9
commit
b98740129c
3 changed files with 36 additions and 9 deletions
|
|
@ -570,6 +570,8 @@ def update_generation_info(args):
|
|||
generation_info, html_info, img_index = args
|
||||
try:
|
||||
generation_info = json.loads(generation_info)
|
||||
if img_index < 0 or img_index >= len(generation_info["infotexts"]):
|
||||
return html_info
|
||||
return plaintext_to_html(generation_info["infotexts"][img_index])
|
||||
except Exception:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue