mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 17:44:25 +00:00
Avoid JS errors after [29057]. When the modal closes, reset the URL.
See #24716. git-svn-id: https://develop.svn.wordpress.org/trunk@29070 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -446,6 +446,8 @@
|
||||
this.modal.close = function() {
|
||||
self.modal.remove();
|
||||
$( 'body' ).off( 'keydown.media-modal' ); /* remove the keydown event */
|
||||
|
||||
self.resetRoute();
|
||||
};
|
||||
|
||||
this.modal.content( this );
|
||||
|
||||
Reference in New Issue
Block a user