From e30ab8d2bb5ec6e528ed2fd3569f25ca78ec749e Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 21 Aug 2015 11:09:01 +0530 Subject: [PATCH] [minor] reset dashboard on refresh --- frappe/public/js/legacy/form.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frappe/public/js/legacy/form.js b/frappe/public/js/legacy/form.js index a76fa6a288..7f3d14fcb8 100644 --- a/frappe/public/js/legacy/form.js +++ b/frappe/public/js/legacy/form.js @@ -317,6 +317,8 @@ _f.Frm.prototype.refresh_header = function(is_a_different_doc) { this.toolbar.refresh(); } + this.dashboard.reset(); + this.clear_custom_buttons(); this.show_web_link();