Media: ensure the toolbar is shown after leaving iframe-based content. Props mcsf, fixes #30608.

git-svn-id: https://develop.svn.wordpress.org/trunk@30780 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2014-12-07 21:11:23 +00:00
parent 3913b26b24
commit 8719a8a8b0
1 changed files with 5 additions and 0 deletions

View File

@ -2395,6 +2395,7 @@
}, this );
this.on( 'content:create:iframe', this.iframeContent, this );
this.on( 'content:deactivate:iframe', this.iframeContentCleanup, this );
this.on( 'menu:render:default', this.iframeMenu, this );
this.on( 'open', this.hijackThickbox, this );
this.on( 'close', this.restoreThickbox, this );
@ -2411,6 +2412,10 @@
});
},
iframeContentCleanup: function( content ) {
this.$el.removeClass('hide-toolbar');
},
iframeMenu: function( view ) {
var views = {};