mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-04 17:21:43 +02:00
Fix stuck tooltips
Fix stuck tooltips by implementing custom data request function, and destroying existing tooltips on new data load. Fixes #81
This commit is contained in:
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
Reference in New Issue
Block a user