Skip to content

Commit

Permalink
Working on jQuery Conversion #251
Browse files Browse the repository at this point in the history
Better use properties than attributes in this case
  • Loading branch information
Diogo Parrinha committed May 7, 2014
1 parent 829e9a3 commit 1815faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jscripts/general.js
Expand Up @@ -18,7 +18,7 @@ var MyBB = {
$(this).change(function() {
var checkboxes = $(this).closest('form').find(':checkbox');
if($(this).is(':checked')) {
checkboxes.attr('checked', 'checked');
checkboxes.prop('checked', true);
} else {
checkboxes.removeAttr('checked');
}
Expand Down

0 comments on commit 1815faf

Please sign in to comment.