Make WordPress Core

Changeset 22984


Ignore:
Timestamp:
12/03/2012 04:38:10 AM (12 years ago)
Author:
ryan
Message:

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

Props koopersmith
see #21776

Location:
trunk/wp-includes/js
Files:
2 edited

Legend:

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

    r22979 r22984  
    305305                    multiple:  true,
    306306                    selection: selection
    307                 });
     307                }).open();
    308308
    309309                return this.frame;
  • trunk/wp-includes/js/media-views.js

    r22979 r22984  
    11401140
    11411141            this.on( 'attach', _.bind( this.views.ready, this.views ), this );
     1142        },
     1143
     1144        render: function() {
     1145            // Activate the default state if no active state exists.
     1146            if ( ! this.state() && this.options.state )
     1147                this.setState( this.options.state );
     1148
     1149            return media.view.Frame.prototype.render.apply( this, arguments );
    11421150        },
    11431151
Note: See TracChangeset for help on using the changeset viewer.