mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 10:59:07 +01:00
Update gallery editing to work with the modal changes. Add nice handling for default states.
Props koopersmith see #21776 git-svn-id: http://core.svn.wordpress.org/trunk@22984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
db0ef72326
commit
b382901778
@ -304,7 +304,7 @@
|
||||
editing: true,
|
||||
multiple: true,
|
||||
selection: selection
|
||||
});
|
||||
}).open();
|
||||
|
||||
return this.frame;
|
||||
}
|
||||
|
@ -1141,6 +1141,14 @@
|
||||
this.on( 'attach', _.bind( this.views.ready, this.views ), this );
|
||||
},
|
||||
|
||||
render: function() {
|
||||
// Activate the default state if no active state exists.
|
||||
if ( ! this.state() && this.options.state )
|
||||
this.setState( this.options.state );
|
||||
|
||||
return media.view.Frame.prototype.render.apply( this, arguments );
|
||||
},
|
||||
|
||||
createIframeStates: function( options ) {
|
||||
var settings = media.view.settings,
|
||||
tabs = settings.tabs,
|
||||
|
Loading…
Reference in New Issue
Block a user