DFW: fix reference to off() when pressing Esc. Props kovshenin, see #24067.

Built from https://develop.svn.wordpress.org/trunk@26966


git-svn-id: http://core.svn.wordpress.org/trunk@26845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2014-01-17 00:13:11 +00:00
parent 443e88b1c2
commit 920af73acd
2 changed files with 3 additions and 3 deletions

View File

@ -481,7 +481,7 @@
data = {
event: e,
what: 'dfw',
cb: fullscreen.off,
cb: api.off,
condition: function(){
if ( $('#TB_window').is(':visible') || $('.wp-dialog').is(':visible') )
return false;
@ -490,7 +490,7 @@
};
if ( ! $(document).triggerHandler( 'wp_CloseOnEscape', [data] ) ) {
fullscreen.off();
api.off();
}
}

File diff suppressed because one or more lines are too long