1
0
Fork 0
forked from OpenNeo/impress
impress/app/assets/javascripts/closet_hangers/petpage.js

9 lines
209 B
JavaScript
Raw Normal View History

2012-04-08 13:59:51 -07:00
(function () {
function setChecked() {
var el = $(this);
el.closest('li').toggleClass('checked', el.is(':checked'));
}
$('#petpage-closet-lists input').click(setChecked).each(setChecked);
})();