run communication list if a new communication is added

This commit is contained in:
Anand Doshi 2012-08-31 13:39:18 +05:30
parent 00d3c7c67d
commit 29abc389eb

View File

@ -90,6 +90,9 @@ cur_frm.cscript.render_list = function(doc, doctype, wrapper, ListView, make_new
}
var record_list_view = new RecordListView(doctype, wrapper, ListView);
if (!cur_frm[doctype.toLowerCase().replace(" ", "_") + "_list"]) {
cur_frm[doctype.toLowerCase().replace(" ", "_") + "_list"] = record_list_view;
}
});
}
@ -110,4 +113,9 @@ cur_frm.cscript.contact = function(doc, dt, dn) {
},
});
}
}
cur_frm.cscript.hide_dialog = function() {
if(cur_frm.communication_list)
cur_frm.communication_list.run();
}