More specific selector for checkbox columns. Props Cimmo for initial patch. Fixes #15051

git-svn-id: http://svn.automattic.com/wordpress/trunk@15743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-10-07 09:53:37 +00:00
parent 5757866954
commit c640cfb7ef
3 changed files with 4 additions and 4 deletions

View File

@ -256,7 +256,7 @@ jQuery(document).ready( function($) {
return true;
});
$('thead, tfoot').find(':checkbox').click( function(e) {
$('thead, tfoot').find('.check-column :checkbox').click( function(e) {
var c = $(this).attr('checked'),
kbtoggle = 'undefined' == typeof toggleWithKeyboard ? false : toggleWithKeyboard,
toggle = e.shiftKey || kbtoggle;
@ -322,4 +322,4 @@ jQuery(document).ready( function($) {
if ( this.lastKey && 9 == this.lastKey )
this.focus();
});
});
});

File diff suppressed because one or more lines are too long

View File

@ -60,7 +60,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20090102' );
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20100531' );
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20101007' );
$scripts->add_data( 'common', 'group', 1 );
$scripts->localize( 'common', 'commonL10n', array(
'warnDelete' => __("You are about to permanently delete the selected items.\n 'Cancel' to stop, 'OK' to delete."),