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:
parent
3913b26b24
commit
8719a8a8b0
|
@ -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 = {};
|
||||
|
||||
|
|
Loading…
Reference in New Issue