diff --git a/src/wp-includes/js/media-grid.js b/src/wp-includes/js/media-grid.js
index 67f4dc5..9fb41f2 100644
|
a
|
b
|
|
| 426 | 426 | |
| 427 | 427 | initialize: function() { |
| 428 | 428 | var self = this; |
| 429 | | media.view.Frame.prototype.initialize.apply( this, arguments ); |
| 430 | 429 | |
| | 430 | media.view.Frame.prototype.initialize.apply( this, arguments ); |
| 431 | 431 | _.defaults( this.options, { |
| 432 | 432 | modal: true, |
| 433 | 433 | state: 'edit-attachment' |
| … |
… |
|
| 435 | 435 | |
| 436 | 436 | this.gridRouter = this.options.gridRouter; |
| 437 | 437 | this.library = this.options.library; |
| | 438 | |
| 438 | 439 | if ( this.options.model ) { |
| 439 | 440 | this.model = this.options.model; |
| 440 | 441 | } else { |
| 441 | 442 | this.model = this.library.at( 0 ); |
| 442 | 443 | } |
| | 444 | // Close the modal if the attachment is deleted. |
| | 445 | this.listenTo( this.model, 'destroy', this.close, this ); |
| 443 | 446 | |
| 444 | 447 | this.createStates(); |
| 445 | 448 | |
| … |
… |
|
| 449 | 452 | |
| 450 | 453 | // Bind default title creation. |
| 451 | 454 | this.on( 'title:create:default', this.createTitle, this ); |
| 452 | | this.title.mode('default'); |
| | 455 | this.title.mode( 'default' ); |
| 453 | 456 | |
| 454 | 457 | this.options.hasPrevious = this.hasPrevious(); |
| 455 | 458 | this.options.hasNext = this.hasNext(); |