mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
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:
@@ -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
Reference in New Issue
Block a user