mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 03:56:07 +00:00
s/Colse/Close/, props nacin, fixes #17399
git-svn-id: http://svn.automattic.com/wordpress/trunk@18070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9739cfea3c
commit
2d2f8d4c6f
@ -344,7 +344,7 @@ $(document).ready( function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// internal use
|
// internal use
|
||||||
$(document).bind( 'wp_ColseOnEscape', function( e, data ) {
|
$(document).bind( 'wp_CloseOnEscape', function( e, data ) {
|
||||||
if ( typeof(data.cb) != 'function' )
|
if ( typeof(data.cb) != 'function' )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
@ -498,7 +498,7 @@ PubSub.prototype.publish = function( topic, args ) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if ( ! jQuery(document).triggerHandler( 'wp_ColseOnEscape', [data] ) )
|
if ( ! jQuery(document).triggerHandler( 'wp_CloseOnEscape', [data] ) )
|
||||||
fullscreen.off();
|
fullscreen.off();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
@ -162,7 +162,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
|
|||||||
e.stopImmediatePropagation();
|
e.stopImmediatePropagation();
|
||||||
|
|
||||||
if ( e.which == 27 ){ // close
|
if ( e.which == 27 ){ // close
|
||||||
if ( ! jQuery(document).triggerHandler( 'wp_ColseOnEscape', [{ event: e, what: 'thickbox', cb: tb_remove }] ) )
|
if ( ! jQuery(document).triggerHandler( 'wp_CloseOnEscape', [{ event: e, what: 'thickbox', cb: tb_remove }] ) )
|
||||||
tb_remove();
|
tb_remove();
|
||||||
|
|
||||||
} else if ( e.which == 190 ){ // display previous image
|
} else if ( e.which == 190 ){ // display previous image
|
||||||
@ -253,7 +253,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
|
|||||||
|
|
||||||
if ( e.which == 27 ){ // close
|
if ( e.which == 27 ){ // close
|
||||||
e.stopImmediatePropagation();
|
e.stopImmediatePropagation();
|
||||||
if ( ! jQuery(document).triggerHandler( 'wp_ColseOnEscape', [{ event: e, what: 'thickbox', cb: tb_remove }] ) )
|
if ( ! jQuery(document).triggerHandler( 'wp_CloseOnEscape', [{ event: e, what: 'thickbox', cb: tb_remove }] ) )
|
||||||
tb_remove();
|
tb_remove();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -337,7 +337,7 @@ var wpLink;
|
|||||||
switch( event.which ) {
|
switch( event.which ) {
|
||||||
case key.ESCAPE:
|
case key.ESCAPE:
|
||||||
event.stopImmediatePropagation();
|
event.stopImmediatePropagation();
|
||||||
if ( ! $(document).triggerHandler( 'wp_ColseOnEscape', [{ event: event, what: 'wplink', cb: wpLink.close }] ) )
|
if ( ! $(document).triggerHandler( 'wp_CloseOnEscape', [{ event: event, what: 'wplink', cb: wpLink.close }] ) )
|
||||||
wpLink.close();
|
wpLink.close();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user