From b1637cdfc205812b4a5e6646e83b58805e5b5b01 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 6 Jan 2009 23:28:21 +0000 Subject: [PATCH] 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 --- wp-admin/js/common.dev.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/js/common.dev.js b/wp-admin/js/common.dev.js index 03fe415fe4..7603779a97 100644 --- a/wp-admin/js/common.dev.js +++ b/wp-admin/js/common.dev.js @@ -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') )