Pipe the callback after the attachment save

issue5236
review24701002
This commit is contained in:
C?dric Krier 2016-01-13 21:14:28 +01:00
parent a0b1d64e44
commit c89ddac9c7

View file

@ -399,11 +399,12 @@
{view_type: 'tree'});
},
callback: function(result) {
var prm = jQuery.when();
if (result) {
this.screen.group.save();
prm = this.screen.group.save();
}
if (this.attachment_callback) {
this.attachment_callback();
prm.always(this.attachment_callback.bind(this));
}
}
});