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:
@@ -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;
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user