06/15 Fix listing items publish issue

This commit is contained in:
2026-06-15 17:07:09 -04:00
parent 2471e0b7c9
commit 9dac4a29b4
+5 -1
View File
@@ -66,7 +66,11 @@
var groups = document.querySelectorAll('.attr-group');
function sync(){
groups.forEach(function(g){
g.style.display = (g.dataset.cat === sel.value) ? 'block' : 'none';
var visible = g.dataset.cat === sel.value;
g.style.display = visible ? 'block' : 'none';
g.querySelectorAll('input,select,textarea').forEach(function(el){
el.disabled = !visible;
});
});
}
if (sel){ sel.addEventListener('change', sync); sync(); }