mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +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:
parent
f2e2f4c19c
commit
5b6340a221
@ -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 );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user