mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Optimized button click tooltip hide handling (fixes #2206)
This commit is contained in:
@@ -121,9 +121,7 @@ $(document).on('click', '.shoppinglist-delete-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");
|
||||
|
||||
var shoppingListItemId = $(e.currentTarget).attr('data-shoppinglist-id');
|
||||
Grocy.FrontendHelpers.BeginUiBusy();
|
||||
@@ -253,9 +251,7 @@ $(document).on('click', '.shopping-list-stock-add-workflow-list-item-button', fu
|
||||
{
|
||||
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");
|
||||
|
||||
var href = $(e.currentTarget).attr('href');
|
||||
|
||||
@@ -335,9 +331,7 @@ $(document).on('click', '.order-listitem-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();
|
||||
|
||||
|
Reference in New Issue
Block a user