[minor] Added allow rename in employee webnotes/erpnext#962

This commit is contained in:
Rushabh Mehta 2013-10-11 10:55:28 +05:30
parent b28916d8bd
commit 5cb4915801

View file

@ -76,11 +76,13 @@ wn.ui.form.InfoBar = Class.extend({
html: true,
placement: "bottom"
})
this.$comments
.popover("destroy")
if(this.docinfo.comments.length) {
var last = this.docinfo.comments[0];
this.$comments
.popover("destroy")
.popover({
title: "Last Comment",
content: last.comment