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
This commit is contained in:
ryan 2008-08-30 00:48:37 +00:00
parent 4368f17dfa
commit 4493a6b110
1 changed files with 1 additions and 0 deletions

View File

@ -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();