From 242bfa421f733e9f49f00c9db7609976e9108a93 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 4 Aug 2017 12:36:28 +0530 Subject: [PATCH] [minor] clear headline --- frappe/public/js/legacy/form.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/public/js/legacy/form.js b/frappe/public/js/legacy/form.js index b431446fd3..3c634dbf2b 100644 --- a/frappe/public/js/legacy/form.js +++ b/frappe/public/js/legacy/form.js @@ -459,6 +459,7 @@ _f.Frm.prototype.refresh = function(docname) { _f.Frm.prototype.show_if_needs_refresh = function() { if(this.doc.__needs_refresh) { if(this.doc.__unsaved) { + this.dashboard.clear_headline(); this.dashboard.set_headline_alert(__("This form has been modified after you have loaded it") + '' + __("Refresh") + '', "alert-warning");