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:
parent
443e88b1c2
commit
920af73acd
|
@ -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
Loading…
Reference in New Issue