This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2013-09-11 10:38:56 +00:00
|
|
|
$(function() {
|
2013-09-11 11:24:58 +00:00
|
|
|
$('.module-area [data-toggle=buttons-checkbox]').find('input[type="checkbox"]').each(function() {
|
|
|
|
$(this).prop('checked') ? $(this).siblings('input[type="hidden"]').val(1) : $(this).siblings('input[type="hidden"]').val(0);
|
|
|
|
});
|
|
|
|
$('.module-area').delegate('input[type="checkbox"]', clickEvent, function(event) {
|
|
|
|
$(this).prop('checked') ? $(this).siblings('input[type="hidden"]').val(1) : $(this).siblings('input[type="hidden"]').val(0);
|
|
|
|
});
|
2013-09-11 10:38:56 +00:00
|
|
|
});
|