mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
fix style editing dialog breaking if it's opened in both img2img and txt2img tabs
This commit is contained in:
parent
c2463b5323
commit
23c6b5f124
2 changed files with 10 additions and 1 deletions
|
|
@ -249,6 +249,15 @@ function popup(contents) {
|
|||
globalPopup.style.display = "flex";
|
||||
}
|
||||
|
||||
var storedPopupIds = {};
|
||||
function popupId(id) {
|
||||
if(! storedPopupIds[id]){
|
||||
storedPopupIds[id] = gradioApp().getElementById(id);
|
||||
}
|
||||
|
||||
popup(storedPopupIds[id]);
|
||||
}
|
||||
|
||||
function extraNetworksShowMetadata(text) {
|
||||
var elem = document.createElement('pre');
|
||||
elem.classList.add('popup-metadata');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue