Fixed select all checkboxes

This commit is contained in:
saurabhbhatia 2013-11-06 15:29:15 +08:00
parent ef67941ba5
commit 2d0fd1d2e4
1 changed files with 7 additions and 0 deletions

View File

@ -160,3 +160,10 @@
$.getScript($(this).attr('rel') + '?type=' + $(this).val() + "&id=" + "<%= @part.id %>" );
});
</script>
<script>
function toggleChecked(status) {
$(".checkbox").each( function() {
$(this).attr("checked",status);
})
}
</script>