Emi Matchu
0e314482f7
I haven't been running Prettier consistently on things in this project. Now, it's quick-runnable, and I've got it on everything! Also, I just think tabs are the right default for this kind of thing, and I'm glad to get to switch over to it! (In `package.json`.)
5 lines
203 B
JavaScript
5 lines
203 B
JavaScript
document.addEventListener("change", ({ target }) => {
|
|
if (target.matches('select[name="closet_list[visibility]"]')) {
|
|
target.closest("form").setAttribute("data-list-visibility", target.value);
|
|
}
|
|
});
|