Ticket #32309: 32309.diff
File 32309.diff, 1.3 KB (added by , 10 years ago) |
---|
-
wp-admin/js/common.js
402 402 if ( 'undefined' == e.shiftKey ) { return true; } 403 403 if ( e.shiftKey ) { 404 404 if ( !lastClicked ) { return true; } 405 checks = $( lastClicked ).closest( 'form' ).find( ':checkbox' ) ;405 checks = $( lastClicked ).closest( 'form' ).find( ':checkbox' ).filter( ':visible:enabled' ); 406 406 first = checks.index( lastClicked ); 407 407 last = checks.index( this ); 408 408 checked = $(this).prop('checked'); … … 419 419 lastClicked = this; 420 420 421 421 // toggle "check all" checkboxes 422 var unchecked = $(this).closest('tbody').find(':checkbox').filter(':visible ').not(':checked');422 var unchecked = $(this).closest('tbody').find(':checkbox').filter(':visible:enabled').not(':checked'); 423 423 $(this).closest('table').children('thead, tfoot').find(':checkbox').prop('checked', function() { 424 424 return ( 0 === unchecked.length ); 425 425 }); … … 436 436 $table.children( 'tbody' ).filter(':visible') 437 437 .children().children('.check-column').find(':checkbox') 438 438 .prop('checked', function() { 439 if ( $(this).is(':hidden ') ) {439 if ( $(this).is(':hidden,:disabled') ) { 440 440 return false; 441 441 } 442 442