Optimized button click tooltip hide handling (fixes #2206)

This commit is contained in:
Bernd Bestel
2023-05-03 08:32:49 +02:00
parent 5ab31f726a
commit 8bdb74a8e0
10 changed files with 21 additions and 60 deletions

View File

@@ -54,9 +54,7 @@ $(document).on('click', '.do-task-button', function(e)
{
e.preventDefault();
// Remove the focus from the current button
// to prevent that the tooltip stays until clicked anywhere else
document.activeElement.blur();
$(".tooltip").tooltip("hide");
Grocy.FrontendHelpers.BeginUiBusy();
@@ -99,9 +97,7 @@ $(document).on('click', '.undo-task-button', function(e)
{
e.preventDefault();
// Remove the focus from the current button
// to prevent that the tooltip stays until clicked anywhere else
document.activeElement.blur();
$(".tooltip").tooltip("hide");
Grocy.FrontendHelpers.BeginUiBusy();