This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".wizard-categories, .wizard-category-sets").click(function() { | |
$(".wizard-categories, .wizard-category-sets").find(":checkbox").attr('disabled','disabled'); | |
$(this).find(":checkbox").removeAttr('disabled'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |