1
0
Fork 0
forked from OpenNeo/impress
impress/app/assets/javascripts/closet_lists/form.js

8 lines
211 B
JavaScript
Raw Normal View History

document.addEventListener("change", ({ target }) => {
if (target.matches('select[name="closet_list[visibility]"]')) {
target
.closest("form")
.setAttribute("data-list-visibility", target.value);
}
});