This commit is contained in:
AUTOMATIC1111 2023-07-15 21:05:33 +03:00
parent e5d3ae2bf4
commit 5decbf184b

View File

@ -182,7 +182,7 @@ function extraNetworksSearchButton(tabs_id, event) {
var globalPopup = null; var globalPopup = null;
var globalPopupInner = null; var globalPopupInner = null;
function closePopup(){ function closePopup() {
if (!globalPopup) return; if (!globalPopup) return;
globalPopup.style.display = "none"; globalPopup.style.display = "none";
@ -265,13 +265,13 @@ function extraNetworksRequestMetadata(event, extraPage, cardName) {
event.stopPropagation(); event.stopPropagation();
} }
extraPageUserMetadataEditors = {} var extraPageUserMetadataEditors = {};
function extraNetworksEditUserMetadata(event, tabname, extraPage, cardName) { function extraNetworksEditUserMetadata(event, tabname, extraPage, cardName) {
var id = tabname + '_' + extraPage + '_edit_user_metadata'; var id = tabname + '_' + extraPage + '_edit_user_metadata';
editor = extraPageUserMetadataEditors[id] var editor = extraPageUserMetadataEditors[id];
if(! editor){ if (!editor) {
editor = {}; editor = {};
editor.page = gradioApp().getElementById(id); editor.page = gradioApp().getElementById(id);
editor.nameTextarea = gradioApp().querySelector("#" + id + "_name" + ' textarea'); editor.nameTextarea = gradioApp().querySelector("#" + id + "_name" + ' textarea');