preventDefault() for link popup 'Cancel'. props ocean90, SergeyBiryukov, fixes #19369.
git-svn-id: https://develop.svn.wordpress.org/trunk@19460 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3b7414641b
commit
9ec00c3d9f
@ -31,10 +31,13 @@ var wpLink;
|
||||
inputs.dialog.keydown( wpLink.keydown );
|
||||
inputs.dialog.keyup( wpLink.keyup );
|
||||
inputs.submit.click( function(e){
|
||||
wpLink.update();
|
||||
e.preventDefault();
|
||||
wpLink.update();
|
||||
});
|
||||
$('#wp-link-cancel').click( function(e){
|
||||
e.preventDefault();
|
||||
wpLink.close();
|
||||
});
|
||||
$('#wp-link-cancel').click( wpLink.close );
|
||||
$('#internal-toggle').click( wpLink.toggleInternalLinking );
|
||||
|
||||
rivers.elements.bind('river-select', wpLink.updateFields );
|
||||
|
File diff suppressed because one or more lines are too long
@ -262,7 +262,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", false, '20111127', 1 );
|
||||
|
||||
$scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'jquery', 'wpdialogs' ), '20110929', 1 );
|
||||
$scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'jquery', 'wpdialogs' ), '20111128', 1 );
|
||||
$scripts->localize( 'wplink', 'wpLinkL10n', array(
|
||||
'title' => __('Insert/edit link'),
|
||||
'update' => __('Update'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user