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

git-svn-id: http://svn.automattic.com/wordpress/trunk@10325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-01-06 23:28:21 +00:00
parent 67bf900a02
commit b1637cdfc2

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') )