Optimized tooltip hide handling

This commit is contained in:
Bernd Bestel
2025-01-17 17:22:37 +01:00
parent ded742a7c1
commit 6605eeafd0
12 changed files with 7 additions and 49 deletions

View File

@@ -67,8 +67,6 @@ $(document).on('click', '.do-task-button', function(e)
{
e.preventDefault();
$(".tooltip").tooltip("hide");
Grocy.FrontendHelpers.BeginUiBusy();
var taskId = $(e.currentTarget).attr('data-task-id');
@@ -82,7 +80,6 @@ $(document).on('click', '.do-task-button', function(e)
{
animateCSS("#task-" + taskId + "-row", "fadeOut", function()
{
$("#task-" + taskId + "-row").tooltip("hide");
$("#task-" + taskId + "-row").remove();
});
}
@@ -110,8 +107,6 @@ $(document).on('click', '.undo-task-button', function(e)
{
e.preventDefault();
$(".tooltip").tooltip("hide");
Grocy.FrontendHelpers.BeginUiBusy();
var taskId = $(e.currentTarget).attr('data-task-id');
@@ -159,7 +154,6 @@ $(document).on('click', '.delete-task-button', function(e)
{
animateCSS("#task-" + objectId + "-row", "fadeOut", function()
{
$("#task-" + objectId + "-row").tooltip("hide");
$("#task-" + objectId + "-row").remove();
});
},