fix Unable to pin settings to quick access after recent update #143

This commit is contained in:
anapnoe
2023-05-15 11:20:25 +03:00
parent 84b67858cd
commit 1e614d2dd2
4 changed files with 8 additions and 6 deletions
+3 -2
View File
@@ -798,7 +798,7 @@ onUiLoaded(function () {
elem.addEventListener("click", toggleAccordion);
});
}
function toggleAccordion(e) {
/* function toggleAccordion(e) {
//e.preventDefault();
//e.stopPropagation();
//e.stopImmediatePropagation();
@@ -835,6 +835,7 @@ onUiLoaded(function () {
}
attachAccordionListeners(gradioApp());
*/
// additional ui styles
let styleobj = {};
const r = gradioApp();
@@ -1228,7 +1229,7 @@ onUiLoaded(function () {
setting_quicksettings.value = field_settings;
//addModelCheckpoint();
saveQuickSettings();
//console.log(section + " - "+ id + " - " + checked);
console.log(section + " - "+ id + " - " + checked);
}
gradioApp()
.querySelectorAll('[id*="add2quick_"]')
+2 -2
View File
@@ -1,6 +1,6 @@
// various hints and extra info for the settings tab
onUiLoaded(function(){
/* onUiLoaded(function(){
createLink = function(elem_id, text, href){
var a = document.createElement('A')
a.textContent = text
@@ -36,6 +36,6 @@ onUiLoaded(function(){
popup(table);
})
});
})
}) */