Skip to content

Commit 1bd83cb

Browse files
committed
Fix behavior of Select all check box in snippet lists
The change event now uses 'prop' function instead of 'attr'.
1 parent 3f48c37 commit 1bd83cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Snippets/files/snippets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jQuery(document).ready(function($) {
2323

2424
// Snippet list behaviors
2525
$("input.snippets_select_all").change(function(){
26-
$("input[name='snippet_list[]']").attr("checked", $(this).attr("checked"));
26+
$("input[name='snippet_list[]']").prop("checked", $(this).prop("checked"));
2727
});
2828

2929
// Snippet pattern help

0 commit comments

Comments
 (0)