Ticket #27028: 27028.diff
File 27028.diff, 968 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/js/media-views.js
4840 4840 this.model.on( 'selection:single selection:unsingle', this.details, this ); 4841 4841 this.details( this.model, this.controller.state().get('selection') ); 4842 4842 } 4843 4844 this.listenTo( this.controller, 'attachment:compat:waiting attachment:compat:ready', this.updateSave ); 4843 4845 }, 4844 4846 /** 4845 4847 * @returns {wp.media.view.Attachment} Returns itself to allow chaining … … 6908 6910 data[ pair.name ] = pair.value; 6909 6911 }); 6910 6912 6911 this.model.saveCompat( data ); 6913 this.controller.trigger( 'attachment:compat:waiting', ['waiting'] ); 6914 this.model.saveCompat( data ).always( _.bind( this.postSave, this ) ); 6915 }, 6916 6917 postSave: function() { 6918 this.controller.trigger( 'attachment:compat:ready', ['ready'] ); 6912 6919 } 6913 6920 }); 6914 6921