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:
Scott Taylor 2014-07-10 17:55:43 +00:00
parent f2e2f4c19c
commit 5b6340a221

View File

@ -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 );