From 5cb491580175bfb95df4d2c8fd805ca6a39896b5 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 11 Oct 2013 10:55:28 +0530 Subject: [PATCH] [minor] Added allow rename in employee webnotes/erpnext#962 --- public/js/wn/form/infobar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/wn/form/infobar.js b/public/js/wn/form/infobar.js index cf4be421c8..696ec7f435 100644 --- a/public/js/wn/form/infobar.js +++ b/public/js/wn/form/infobar.js @@ -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