Changeset 27756
- Timestamp:
- 03/26/2014 10:55:10 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r27658 r27756 5931 5931 var self = this, 5932 5932 args = arguments; 5933 5933 5934 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 change5935 5935 this.model.dfd.done( function() { 5936 media.view.Settings.AttachmentDisplay.prototype.render.apply( self, args ); 5937 self.resetFocus(); 5938 } ).fail( function() { 5939 self.model.attachment = false; 5936 5940 media.view.Settings.AttachmentDisplay.prototype.render.apply( self, args ); 5937 5941 self.resetFocus();
Note: See TracChangeset
for help on using the changeset viewer.