From 4493a6b1104fb15beb4785268379f0cc744874b0 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 30 Aug 2008 00:48:37 +0000 Subject: [PATCH] Don't process keypress if the current row is null. see #7643 git-svn-id: http://svn.automattic.com/wordpress/trunk@8779 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/jquery/jquery.table-hotkeys.js | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/js/jquery/jquery.table-hotkeys.js b/wp-includes/js/jquery/jquery.table-hotkeys.js index b4792fa460..4045c7ac60 100644 --- a/wp-includes/js/jquery/jquery.table-hotkeys.js +++ b/wp-includes/js/jquery/jquery.table-hotkeys.js @@ -37,6 +37,7 @@ } var make_key_callback = function(expr) { return function() { + if ( null == $.table_hotkeys.current_row ) return false; var clickable = $(expr, $.table_hotkeys.current_row).filter(':visible'); if (!$($(clickable[0]).parent()[0]).is(':visible')) return false; if (clickable.is('.'+destructive_class)) next_row() || prev_row();