Make WordPress Core

Changeset 30780


Ignore:
Timestamp:
12/07/2014 09:11:23 PM (10 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-views.js

    r30777 r30780  
    23962396
    23972397            this.on( 'content:create:iframe', this.iframeContent, this );
     2398            this.on( 'content:deactivate:iframe', this.iframeContentCleanup, this );
    23982399            this.on( 'menu:render:default', this.iframeMenu, this );
    23992400            this.on( 'open', this.hijackThickbox, this );
     
    24102411                controller: this
    24112412            });
     2413        },
     2414
     2415        iframeContentCleanup: function( content ) {
     2416            this.$el.removeClass('hide-toolbar');
    24122417        },
    24132418
Note: See TracChangeset for help on using the changeset viewer.