Changeset 34325
- Timestamp:
- 09/19/2015 04:40:34 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/common.js
r33106 r34325 410 410 if ( e.shiftKey ) { 411 411 if ( !lastClicked ) { return true; } 412 checks = $( lastClicked ).closest( 'form' ).find( ':checkbox' ) ;412 checks = $( lastClicked ).closest( 'form' ).find( ':checkbox' ).filter( ':visible:enabled' ); 413 413 first = checks.index( lastClicked ); 414 414 last = checks.index( this ); … … 427 427 428 428 // toggle "check all" checkboxes 429 var unchecked = $(this).closest('tbody').find(':checkbox').filter(':visible ').not(':checked');429 var unchecked = $(this).closest('tbody').find(':checkbox').filter(':visible:enabled').not(':checked'); 430 430 $(this).closest('table').children('thead, tfoot').find(':checkbox').prop('checked', function() { 431 431 return ( 0 === unchecked.length ); … … 444 444 .children().children('.check-column').find(':checkbox') 445 445 .prop('checked', function() { 446 if ( $(this).is(':hidden ') ) {446 if ( $(this).is(':hidden,:disabled') ) { 447 447 return false; 448 448 }
Note: See TracChangeset
for help on using the changeset viewer.