s/Colse/Close/, props nacin, fixes #17399

git-svn-id: https://develop.svn.wordpress.org/trunk@18070 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2011-05-29 05:07:32 +00:00
parent 1596867751
commit 25431a16bb
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