Commit cae09e16 authored by DepFA's avatar DepFA Committed by AUTOMATIC1111

Update selectors after ui and core overhaul

parent a213d3a2
......@@ -18,9 +18,9 @@ function dimensionChange(e,dimname){
return;
}
var img2imgMode = gradioApp().querySelector("input[name=radio-img2img_mode]:checked")
var img2imgMode = gradioApp().querySelector('#mode_img2img.tabs > div > button.rounded-t-lg.border-gray-200')
if(img2imgMode){
img2imgMode=img2imgMode.value
img2imgMode=img2imgMode.innerText
}else{
return;
}
......@@ -30,12 +30,10 @@ function dimensionChange(e,dimname){
var targetElement = null;
if(img2imgMode=='Redraw whole image' && redrawImage){
if(img2imgMode=='img2img' && redrawImage){
targetElement = redrawImage;
}else if(img2imgMode=='Inpaint a part of image' && inpaintImage){
}else if(img2imgMode=='Inpaint' && inpaintImage){
targetElement = inpaintImage;
}else if(img2imgMode=='SD upscale' && redrawImage){
targetElement = redrawImage;
}
if(targetElement){
......@@ -119,6 +117,3 @@ onUiUpdate(function(){
})
}
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment