Don't select hidden chechboxes when using the "select all", fixes #8355

git-svn-id: http://svn.automattic.com/wordpress/trunk@9911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-11-26 22:07:57 +00:00
parent 3dc156d583
commit 5410af6e2a
2 changed files with 2 additions and 2 deletions

View File

@ -203,7 +203,7 @@ jQuery(document).ready( function($) {
$( 'thead :checkbox, tfoot :checkbox' ).click( function(e) { $( 'thead :checkbox, tfoot :checkbox' ).click( function(e) {
var c = $(this).attr('checked'); var c = $(this).attr('checked');
$(this).parents( 'form:first' ).find( 'table .check-column :checkbox' ).attr( 'checked', function() { $(this).parents( 'form:first' ).find( 'table tbody:visible, table thead:visible, table tfoot:visible').find( '.check-column :checkbox' ).attr( 'checked', function() {
if ( e.shiftKey ) if ( e.shiftKey )
return $(this).attr( 'checked' ) ? '' : 'checked'; return $(this).attr( 'checked' ) ? '' : 'checked';
else if (c) else if (c)

View File

@ -41,7 +41,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->base_url = $guessurl; $scripts->base_url = $guessurl;
$scripts->default_version = get_bloginfo( 'version' ); $scripts->default_version = get_bloginfo( 'version' );
$scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'hoverIntent'), '20081120b' ); $scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'hoverIntent'), '20081126' );
$scripts->add( 'sack', '/wp-includes/js/tw-sack.js', false, '1.6.1' ); $scripts->add( 'sack', '/wp-includes/js/tw-sack.js', false, '1.6.1' );
$scripts->add( 'quicktags', '/wp-includes/js/quicktags.js', false, '20081103' ); $scripts->add( 'quicktags', '/wp-includes/js/quicktags.js', false, '20081103' );