better docs

This commit is contained in:
Matthias 2021-11-30 17:14:23 +01:00
parent d34aa04c7d
commit d542314520
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -232,7 +232,7 @@ function updateNotificationReadState(btn, panel_caller=false) {
inventreePut(url, {}, { inventreePut(url, {}, {
method: 'POST', method: 'POST',
success: function() { success: function() {
// update the notification tables if they exsist // update the notification tables if they were declared
if (window.updateNotifications) { if (window.updateNotifications) {
window.updateNotifications(); window.updateNotifications();
} }
@ -247,7 +247,7 @@ function updateNotificationReadState(btn, panel_caller=false) {
// update notification indicator now // update notification indicator now
updateNotificationIndicator(count); updateNotificationIndicator(count);
// remove notification if in panel // remove notification if called from notification panel
if (panel_caller) { if (panel_caller) {
btn.parent().parent().remove() btn.parent().parent().remove()
} }