Skip to content

Instantly share code, notes, and snippets.

$(".wizard-categories, .wizard-category-sets").click(function() {
$(".wizard-categories, .wizard-category-sets").find(":checkbox").attr('disabled','disabled');
$(this).find(":checkbox").removeAttr('disabled');
});
Tanga.initialize '#upsell', ->
select = $('#upsell select')
notice = $('#upsell p.notice')
// more readable checkbox selector
checkbox = $('#upsell :checkbox')
callback = ->
// Let's only check the value of $(this), easier to debug if there is more than one checkbox.
notice.toggle $(this).is(":checked")