call on_remove_attachment when attachment is removed
This commit is contained in:
parent
7af7929f38
commit
67de0adb94
1 changed files with 2 additions and 0 deletions
|
|
@ -101,6 +101,8 @@ wn.ui.form.Attachments = Class.extend({
|
|||
callback: function(r,rt) {
|
||||
me.frm.doc.modified = r.message;
|
||||
me.remove_fileid(data);
|
||||
me.frm && me.frm.cscript.on_remove_attachment
|
||||
&& me.frm.cscript.on_remove_attachment(me.frm.doc);
|
||||
me.frm.refresh();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue