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

git-svn-id: https://develop.svn.wordpress.org/trunk@15743 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu 2010-10-07 09:53:37 +00:00
parent d8596259e2
commit eb178ad876
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."),