mirror of
https://github.com/NaN-tic/sao-base.git
synced 2023-12-14 03:13:01 +01:00
Pipe the callback after the attachment save
issue5236 review24701002
This commit is contained in:
parent
a0b1d64e44
commit
c89ddac9c7
|
@ -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));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue