aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/progressbar.js
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-05-01 11:39:52 +0000
committerGitHub <noreply@github.com>2023-05-01 11:39:52 +0000
commit696c338ee2841830fd5010427d90347329d5786a (patch)
tree6f9c37f302e6bcaf1ce3e1f1913f2db54f3b184e /javascript/progressbar.js
parentb463b8a12672e010a8c86ea1c73b2c14ae5555d5 (diff)
parent50f63e22472dd532ddd76adb28f29aef46a71a86 (diff)
downloadstable-diffusion-webui-gfx803-696c338ee2841830fd5010427d90347329d5786a.tar.gz
stable-diffusion-webui-gfx803-696c338ee2841830fd5010427d90347329d5786a.tar.bz2
stable-diffusion-webui-gfx803-696c338ee2841830fd5010427d90347329d5786a.zip
Merge pull request #9953 from akx/js-misc-fixes
Miscellaneous JS fixes
Diffstat (limited to 'javascript/progressbar.js')
-rw-r--r--javascript/progressbar.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/javascript/progressbar.js b/javascript/progressbar.js
index 23bbf298..8d2c3492 100644
--- a/javascript/progressbar.js
+++ b/javascript/progressbar.js
@@ -1,16 +1,15 @@
// code related to showing and updating progressbar shown as the image is being made
-function rememberGallerySelection(id_gallery){
+function rememberGallerySelection(){
}
-function getGallerySelectedIndex(id_gallery){
+function getGallerySelectedIndex(){
}
function request(url, data, handler, errorHandler){
var xhr = new XMLHttpRequest();
- var url = url;
xhr.open("POST", url, true);
xhr.setRequestHeader("Content-Type", "application/json");
xhr.onreadystatechange = function () {
@@ -107,7 +106,7 @@ function requestProgress(id_task, progressbarContainer, gallery, atEnd, onProgre
divProgress.style.width = rect.width + "px";
}
- progressText = ""
+ let progressText = ""
divInner.style.width = ((res.progress || 0) * 100.0) + '%'
divInner.style.background = res.progress ? "" : "transparent"