From 92f3c02e4215635c21008f2135d92abf4abc0383 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 3 Oct 2012 14:10:45 +0530 Subject: [PATCH] message based on id changed --- public/js/toolbar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/toolbar.js b/public/js/toolbar.js index d0b2d885a6..318fd757b3 100644 --- a/public/js/toolbar.js +++ b/public/js/toolbar.js @@ -99,7 +99,9 @@ erpnext.toolbar.set_new_comments = function(new_comments) { $.each(new_comments, function(i, v) { var msg = 'New Message: ' + (v[1].length<=100 ? v[1] : (v[1].substr(0, 100) + "...")); var id = v[0].replace('/', '-'); - if(!$('#' + id)[0]) { show_alert(msg, id); } + if(!$('#' + id)[0]) { + show_alert(msg).attr("id", id); + } }) } else { navbar_nc.removeClass('navbar-new-comments-true');