Skip to content

Commit

Permalink
Merge pull request #9 from OpenBuildings/check-all-checkboxes
Browse files Browse the repository at this point in the history
Change all checkboxes, no matter their name
  • Loading branch information
hkdobrev committed Feb 19, 2014
2 parents fc2a4cd + af8c710 commit f1be38b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/js/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ $(function(){
});

$('body').on('change', 'input[name="all"]', function(e){
$(this).closest('table').find('tbody > tr > td:first-child input[name="id[]"]').prop('checked', $(this).prop('checked'));
$(this).closest('table').find('tbody > tr > td:first-child input[type="checkbox"]').prop('checked', $(this).prop('checked'));
});

$('body').on('click', '[data-toggle="modal"]', function(e) {
Expand Down

0 comments on commit f1be38b

Please sign in to comment.