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:
azaozz 2011-05-29 05:07:32 +00:00
parent 9739cfea3c
commit 2d2f8d4c6f
7 changed files with 8 additions and 8 deletions

View File

@ -344,7 +344,7 @@ $(document).ready( function() {
});
// internal use
$(document).bind( 'wp_ColseOnEscape', function( e, data ) {
$(document).bind( 'wp_CloseOnEscape', function( e, data ) {
if ( typeof(data.cb) != 'function' )
return;

File diff suppressed because one or more lines are too long

View File

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

File diff suppressed because one or more lines are too long

View File

@ -162,7 +162,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
e.stopImmediatePropagation();
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();
} 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
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();
return false;

View File

@ -337,7 +337,7 @@ var wpLink;
switch( event.which ) {
case key.ESCAPE:
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();
return false;

File diff suppressed because one or more lines are too long