forked from OpenNeo/impress
8 lines
211 B
JavaScript
8 lines
211 B
JavaScript
|
document.addEventListener("change", ({ target }) => {
|
||
|
if (target.matches('select[name="closet_list[visibility]"]')) {
|
||
|
target
|
||
|
.closest("form")
|
||
|
.setAttribute("data-list-visibility", target.value);
|
||
|
}
|
||
|
});
|