aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/ui.js
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-01-21 06:48:38 +0000
committerAUTOMATIC <16777216c@gmail.com>2023-01-21 06:58:57 +0000
commit184e23eb89c198b42f351a4d5ff862ee64917619 (patch)
tree9949eaedfc1a281ab8a2d39a7c7ec2290ca6c85e /javascript/ui.js
parent6d805b669e86233432f56ee1892d062103abe501 (diff)
downloadstable-diffusion-webui-gfx803-184e23eb89c198b42f351a4d5ff862ee64917619.tar.gz
stable-diffusion-webui-gfx803-184e23eb89c198b42f351a4d5ff862ee64917619.tar.bz2
stable-diffusion-webui-gfx803-184e23eb89c198b42f351a4d5ff862ee64917619.zip
relocate tool buttons next to generate button
prevent extra network tabs from putting images into wrong prompts prevent settings leaking into prompt
Diffstat (limited to 'javascript/ui.js')
-rw-r--r--javascript/ui.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/javascript/ui.js b/javascript/ui.js
index a7e75439..77256e15 100644
--- a/javascript/ui.js
+++ b/javascript/ui.js
@@ -203,8 +203,8 @@ onUiUpdate(function(){
json_elem = gradioApp().getElementById('settings_json')
if(json_elem == null) return;
- textarea = json_elem.querySelector('textarea')
- jsdata = textarea.value
+ var textarea = json_elem.querySelector('textarea')
+ var jsdata = textarea.value
opts = JSON.parse(jsdata)
executeCallbacks(optionsChangedCallbacks);