Update gallery editing to work with the modal changes. Add nice handling for default states.

Props koopersmith
see #21776


git-svn-id: https://develop.svn.wordpress.org/trunk@22984 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2012-12-03 04:38:10 +00:00
parent 86a0b9ad45
commit 558d134c6b
2 changed files with 9 additions and 1 deletions

View File

@ -304,7 +304,7 @@
editing: true,
multiple: true,
selection: selection
});
}).open();
return this.frame;
}

View File

@ -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,