diff --git a/InvenTree/templates/InvenTree/notifications/notifications.html b/InvenTree/templates/InvenTree/notifications/notifications.html index 503c492ac3..e6f73db356 100644 --- a/InvenTree/templates/InvenTree/notifications/notifications.html +++ b/InvenTree/templates/InvenTree/notifications/notifications.html @@ -102,7 +102,19 @@ function loadNotificationTable(table, options={}) { inventreePut(url, {}, { method: 'POST', - success: function() { updateNotificationTables(); } + success: function() { + updateNotificationTables(); + + // update current notification count + var count = parseInt($("#notification-counter").html()); + if ($(this).attr('target') == 'read') { + count = count - 1; + } else { + count = count + 1; + } + // update notification indicator now + updateNotificationIndicator(count); + } }); }); }