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

@ -159,4 +159,11 @@
$("#public_r_tag").on("change", "#tag_list select", function() { $("#public_r_tag").on("change", "#tag_list select", function() {
$.getScript($(this).attr('rel') + '?type=' + $(this).val() + "&id=" + "<%= @part.id %>" ); $.getScript($(this).attr('rel') + '?type=' + $(this).val() + "&id=" + "<%= @part.id %>" );
}); });
</script>
<script>
function toggleChecked(status) {
$(".checkbox").each( function() {
$(this).attr("checked",status);
})
}
</script> </script>