Index: lams_central/web/includes/javascript/main.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/Attic/main.js,v diff -u -r1.1.2.24 -r1.1.2.25 --- lams_central/web/includes/javascript/main.js 9 Feb 2017 17:45:44 -0000 1.1.2.24 +++ lams_central/web/includes/javascript/main.js 18 Feb 2017 16:22:22 -0000 1.1.2.25 @@ -446,6 +446,13 @@ }, success : function(count) { $('#notificationsPendingCount').text(count == 0 ? '0' : count); + + //#notificationsPendingCount will have .btn-primary class when there are some messages available and .btn-default otherwise + if (count == 0) { + $('#notificationsPendingCount').removeClass("btn-primary").addClass("btn-default"); + } else { + $('#notificationsPendingCount').removeClass("btn-default").addClass("btn-primary"); + } } }); }