Fix not defined error

git-svn-id: https://develop.svn.wordpress.org/trunk@10074 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-12-05 21:45:49 +00:00
parent 4a6fcd9bc6
commit 9fafac9e5f
1 changed files with 2 additions and 0 deletions

View File

@ -201,6 +201,8 @@ jQuery(document).ready( function($) {
} );
$( 'thead :checkbox, tfoot :checkbox' ).click( function(e) {
var c = $(this).attr('checked');
if ( 'undefined' == typeof toggleWithKeyboard)
toggleWithKeyboard = false;
var toggle = e.shiftKey || toggleWithKeyboard;
$(this).parents( 'form:first' ).find( 'table tbody:visible').find( '.check-column :checkbox' ).attr( 'checked', function() {
if ( toggle )