mirror of
https://github.com/anapnoe/stable-diffusion-webui-ux.git
synced 2026-09-19 17:25:09 +02:00
Update anapnoe_sd_uiux_core.js
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
const extraPageUserMetadataEditors = {};
|
|
||||||
const anapnoe_app_id = "#anapnoe_app";
|
const anapnoe_app_id = "#anapnoe_app";
|
||||||
const anapnoe_app = document.querySelector(anapnoe_app_id);
|
const anapnoe_app = document.querySelector(anapnoe_app_id);
|
||||||
const popup_trigger = document.querySelector("#popup_trigger_id");
|
|
||||||
let Split;
|
|
||||||
|
|
||||||
window.all_gallery_buttons = function() {
|
window.all_gallery_buttons = function() {
|
||||||
//orig_all_gallery_buttons();
|
//orig_all_gallery_buttons();
|
||||||
@@ -36,7 +33,7 @@ window.imageMaskResize = function() {
|
|||||||
|
|
||||||
window.extraNetworksEditUserMetadata = function(event, tabname, extraPage) {
|
window.extraNetworksEditUserMetadata = function(event, tabname, extraPage) {
|
||||||
var tid = 'txt2img_' + extraPage + '_edit_user_metadata';
|
var tid = 'txt2img_' + extraPage + '_edit_user_metadata';
|
||||||
var editor = extraPageUserMetadataEditors[tid];
|
var editor = window.extraPageUserMetadataEditors[tid];
|
||||||
if (!editor) {
|
if (!editor) {
|
||||||
editor = {};
|
editor = {};
|
||||||
editor.page = gradioApp().getElementById(tid);
|
editor.page = gradioApp().getElementById(tid);
|
||||||
@@ -478,6 +475,7 @@ function updateExtraNetworksCards(el) {
|
|||||||
|
|
||||||
if (ctarget.className.indexOf("card-button") !== -1) {
|
if (ctarget.className.indexOf("card-button") !== -1) {
|
||||||
data_apply = data_apply?.replaceAll("img2img", "txt2img");
|
data_apply = data_apply?.replaceAll("img2img", "txt2img");
|
||||||
|
/* eslint-disable no-undef */
|
||||||
popup_trigger.click();
|
popup_trigger.click();
|
||||||
testpopup();
|
testpopup();
|
||||||
}
|
}
|
||||||
@@ -487,6 +485,7 @@ function updateExtraNetworksCards(el) {
|
|||||||
|
|
||||||
document.querySelectorAll("#txt2img_styles_edit_button, #img2img_styles_edit_button").forEach((elm) => {
|
document.querySelectorAll("#txt2img_styles_edit_button, #img2img_styles_edit_button").forEach((elm) => {
|
||||||
elm.addEventListener("click", function(e) {
|
elm.addEventListener("click", function(e) {
|
||||||
|
/* eslint-disable no-undef */
|
||||||
popup_trigger.click();
|
popup_trigger.click();
|
||||||
testpopup();
|
testpopup();
|
||||||
});
|
});
|
||||||
@@ -763,6 +762,7 @@ function initDefaultComponents(content_div) {
|
|||||||
|
|
||||||
console.log("Split component", ids, isize, msize, dir, gutter);
|
console.log("Split component", ids, isize, msize, dir, gutter);
|
||||||
|
|
||||||
|
/* eslint-disable no-undef */
|
||||||
split_instances[id] = Split(ids, {
|
split_instances[id] = Split(ids, {
|
||||||
sizes: isize,
|
sizes: isize,
|
||||||
minSize: msize,
|
minSize: msize,
|
||||||
|
|||||||
Reference in New Issue
Block a user