diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-10-01 08:48:41 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-10-01 08:48:41 +0000 |
commit | c0113872c5f814cf8cf96deca541bffaf1af2568 (patch) | |
tree | 519fa7cc37fee058e25187363ba9aaf862c7cea3 /javascript/token-counters.js | |
parent | c7e810a9856641fbaf520976fde24c5536a4fd56 (diff) | |
download | stable-diffusion-webui-gfx803-c0113872c5f814cf8cf96deca541bffaf1af2568.tar.gz stable-diffusion-webui-gfx803-c0113872c5f814cf8cf96deca541bffaf1af2568.tar.bz2 stable-diffusion-webui-gfx803-c0113872c5f814cf8cf96deca541bffaf1af2568.zip |
add search field to settings
Diffstat (limited to 'javascript/token-counters.js')
-rw-r--r-- | javascript/token-counters.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/token-counters.js b/javascript/token-counters.js index 710345eb..2ecc7d91 100644 --- a/javascript/token-counters.js +++ b/javascript/token-counters.js @@ -60,7 +60,7 @@ function setupTokenCounting(id, id_counter, id_button) { prompt.parentElement.insertBefore(counter, prompt); prompt.parentElement.style.position = "relative"; - func = onEdit(id, textarea, 800, function() { + var func = onEdit(id, textarea, 800, function() { gradioApp().getElementById(id_button)?.click(); }); promptTokenCountUpdateFunctions[id] = func; |