Move undefined check up. Props DD32. fixes #8807 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@10325 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-01-06 23:28:21 +00:00
parent 5abca0328d
commit 870e154d2e
1 changed files with 1 additions and 1 deletions

View File

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