diff --git a/InvenTree/templates/js/translated/notification.js b/InvenTree/templates/js/translated/notification.js index 0aca0c2d85..c4f644dbe6 100644 --- a/InvenTree/templates/js/translated/notification.js +++ b/InvenTree/templates/js/translated/notification.js @@ -182,28 +182,28 @@ function updateNotificationReadState(btn, panel_caller=false) { var url = `/api/notifications/${btn.attr('pk')}/${btn.attr('target')}/`; inventreePut(url, {}, { - method: 'POST', - success: function() { - // update the notification tables if they were declared - if (window.updateNotifications) { - window.updateNotifications(); - } + method: 'POST', + success: function() { + // update the notification tables if they were declared + if (window.updateNotifications) { + window.updateNotifications(); + } - // update current notification count - var count = parseInt($("#notification-counter").html()); - if (btn.attr('target') == 'read') { - count = count - 1; - } else { - count = count + 1; - } - // update notification indicator now - updateNotificationIndicator(count); + // update current notification count + var count = parseInt($('#notification-counter').html()); + if (btn.attr('target') == 'read') { + count = count - 1; + } else { + count = count + 1; + } + // update notification indicator now + updateNotificationIndicator(count); - // remove notification if called from notification panel - if (panel_caller) { - btn.parent().parent().remove() + // remove notification if called from notification panel + if (panel_caller) { + btn.parent().parent().remove(); + } } - } }); }; @@ -259,16 +259,16 @@ function openNotificationPanel() { if (item.target.link) { link_text = `${link_text}`; } - html += link_text + html += link_text; } html += '