call on_remove_attachment when attachment is removed

This commit is contained in:
Anand Doshi 2012-12-17 12:10:16 +05:30
parent 7af7929f38
commit 67de0adb94

View file

@ -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();
}
});