diff --git a/backend/templates/base.html b/backend/templates/base.html index d95c1d8..df6d642 100644 --- a/backend/templates/base.html +++ b/backend/templates/base.html @@ -187,6 +187,14 @@ return entries; } + function dataRequestQueueAndDestroyTooltips(params) { + document.querySelectorAll(".tooltip[role='tooltip']").forEach((tooltip) => tooltip.remove()); + var base_url = "/api/queue" + $.get(base_url).then((res) => { + params.success(res); + }); + } + diff --git a/backend/templates/main.html b/backend/templates/main.html index 86fa26c..fef4295 100644 --- a/backend/templates/main.html +++ b/backend/templates/main.html @@ -4,7 +4,7 @@ Eintragen + data-ajax="dataRequestQueueAndDestroyTooltips" data-show-refresh="true" data-auto-refresh="true" data-auto-refresh-interval="10"> @@ -153,7 +153,7 @@ $.ajax({ type: 'POST', url: '/api/entries/delete', - data: JSON.stringify(ids), // or JSON.stringify ({name: 'jonas'}), + data: JSON.stringify(ids), error: function () { bootbox.alert({ message: "Fehler beim Löschen der Eintragungen.",