diff --git a/frappe/public/js/frappe/misc/utils.js b/frappe/public/js/frappe/misc/utils.js index b9d991c1ad..37aa177e8a 100644 --- a/frappe/public/js/frappe/misc/utils.js +++ b/frappe/public/js/frappe/misc/utils.js @@ -99,13 +99,13 @@ frappe.utils = { return list; } }, - set_intro: function(me, wrapper, txt) { + set_intro: function(me, wrapper, txt, append) { if(!me.intro_area) { me.intro_area = $('
') .prependTo(wrapper); } if(txt) { - me.intro_area.html(txt); + me.intro_area.html(((append && strip(me.intro_area.text())) ? (me.intro_area.html() + "

") : "") + txt); } else { me.intro_area.remove(); me.intro_area = null; diff --git a/frappe/public/js/legacy/form.js b/frappe/public/js/legacy/form.js index 96942582da..67b2dd24c4 100644 --- a/frappe/public/js/legacy/form.js +++ b/frappe/public/js/legacy/form.js @@ -696,8 +696,8 @@ _f.Frm.prototype.get_perm = function(permlevel, access_type) { } -_f.Frm.prototype.set_intro = function(txt) { - frappe.utils.set_intro(this, this.body, txt); +_f.Frm.prototype.set_intro = function(txt, append) { + frappe.utils.set_intro(this, this.body, txt, append); } _f.Frm.prototype.set_footnote = function(txt) {