added last comment in form

This commit is contained in:
Rushabh Mehta 2012-10-01 18:31:31 +05:30
parent 2d85baf67d
commit b1a16e9db9

View file

@ -122,7 +122,10 @@ wn.widgets.form.sidebar = { Sidebar: function(form) {
render: function(wrapper) {
new wn.widgets.form.sidebar.Comments(wrapper, me, me.form.doctype, me.form.docname);
},
display: function() { return !me.form.doc.__islocal }
display: function() {
$(cur_frm.page_layout.body).find(".latest-comment").toggle(false);
return !me.form.doc.__islocal;
}
},
{