diff --git src/wp-includes/js/media-views.js src/wp-includes/js/media-views.js
index be0ee8f..86d0b6d 100644
|
|
|
5930 | 5930 | render: function() { |
5931 | 5931 | var self = this, |
5932 | 5932 | args = arguments; |
| 5933 | |
| 5934 | |
5933 | 5935 | if ( this.model.attachment && 'pending' === this.model.dfd.state() ) { |
5934 | | // should instead show a spinner when the attachment is new and then add a listener that updates on change |
5935 | 5936 | this.model.dfd.done( function() { |
5936 | 5937 | media.view.Settings.AttachmentDisplay.prototype.render.apply( self, args ); |
5937 | 5938 | self.resetFocus(); |
| 5939 | } ).fail( function() { |
| 5940 | self.model.attachment = false; |
| 5941 | media.view.Settings.AttachmentDisplay.prototype.render.apply( self, args ); |
| 5942 | self.resetFocus(); |
5938 | 5943 | } ); |
5939 | 5944 | } else { |
5940 | 5945 | media.view.Settings.AttachmentDisplay.prototype.render.apply( this, arguments ); |