mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
update indicator when table is updated
This commit is contained in:
parent
c8efc26f58
commit
93f9fe9684
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user