mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
Fix asynchronous order of events for "mark all as read" button
This commit is contained in:
parent
5f98cdf3c7
commit
9cc2cc5683
@ -10,7 +10,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block actions %}
|
{% block actions %}
|
||||||
<div class='btn btn-secondary' type='button' id='mark-all' title='{% trans "Mark all as read" %}'>
|
<div class='btn btn-outline-secondary' type='button' id='mark-all' title='{% trans "Mark all as read" %}'>
|
||||||
<span class='fa fa-bookmark'></span> {% trans "Mark all as read" %}
|
<span class='fa fa-bookmark'></span> {% trans "Mark all as read" %}
|
||||||
</div>
|
</div>
|
||||||
<div class='btn btn-secondary' type='button' id='inbox-refresh' title='{% trans "Refresh Pending Notifications" %}'>
|
<div class='btn btn-secondary' type='button' id='inbox-refresh' title='{% trans "Refresh Pending Notifications" %}'>
|
||||||
|
@ -126,8 +126,12 @@ $("#mark-all").on('click', function() {
|
|||||||
{
|
{
|
||||||
read: false,
|
read: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
success: function(response) {
|
||||||
|
updateNotificationTables();
|
||||||
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
updateNotificationTables();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
loadNotificationTable("#history-table", {
|
loadNotificationTable("#history-table", {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user