diff --git src/js/media/views/attachment-compat.js src/js/media/views/attachment-compat.js
index d995d231bf..5635f80d79 100644
|
|
AttachmentCompat = View.extend(/** @lends wp.media.view.AttachmentCompat.prototy |
78 | 78 | }, |
79 | 79 | |
80 | 80 | postSave: function() { |
81 | | this.controller.trigger( 'attachment:compat:ready', ['ready'] ); |
| 81 | var self = this; |
| 82 | this.controller.trigger( 'attachment:compat:ready', ['complete'] ); |
| 83 | setTimeout( function() { |
| 84 | self.controller.trigger( 'attachment:compat:ready', ['ready'] ); |
| 85 | }, 2000 ); |
82 | 86 | } |
83 | 87 | }); |
84 | 88 | |
diff --git src/js/media/views/attachment.js src/js/media/views/attachment.js
index 3c93d597b1..db52a28e35 100644
|
|
Attachment = View.extend(/** @lends wp.media.view.Attachment.prototype */{ |
66 | 66 | this.details( this.model, this.controller.state().get('selection') ); |
67 | 67 | } |
68 | 68 | |
69 | | this.listenTo( this.controller, 'attachment:compat:waiting attachment:compat:ready', this.updateSave ); |
| 69 | this.controller.on('attachment:compat:waiting', this.updateSave, this); |
| 70 | this.controller.on('attachment:compat:ready', this.updateSave, this); |
70 | 71 | }, |
71 | 72 | /** |
72 | 73 | * @returns {wp.media.view.Attachment} Returns itself to allow chaining |