1
0
Fork 0
forked from OpenNeo/impress
impress/app/assets/javascripts/closet_hangers/petpage.js
Emi Matchu 95ff69ee9a Run Prettier on some of our JS assets
The motivation is that I'm about to change one of them to remove a
reference to an old placeholder library, so I want that change to be
clear!
2024-02-18 20:34:55 -08:00

8 lines
209 B
JavaScript

(function () {
function setChecked() {
var el = $(this);
el.closest("li").toggleClass("checked", el.is(":checked"));
}
$("#petpage-closet-lists input").click(setChecked).each(setChecked);
})();