From 67de0adb947673a135da05d791e7b22bef9b3d01 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 17 Dec 2012 12:10:16 +0530 Subject: [PATCH] call on_remove_attachment when attachment is removed --- public/js/wn/form/attachments.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/wn/form/attachments.js b/public/js/wn/form/attachments.js index 41484487d1..a6e4210c0f 100644 --- a/public/js/wn/form/attachments.js +++ b/public/js/wn/form/attachments.js @@ -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(); } });