mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 20:26:42 +00:00
Optimized tooltip hide handling
This commit is contained in:
@@ -876,13 +876,9 @@ $('[data-toggle="tooltip"][data-html="true"]').on("shown.bs.tooltip", function()
|
||||
RefreshLocaleNumberDisplay(".tooltip");
|
||||
})
|
||||
|
||||
$(document).on("click", "#clear-filter-button", function(e)
|
||||
{
|
||||
$(".tooltip").tooltip("hide");
|
||||
});
|
||||
|
||||
$(document).on("click", '.btn, a, button', function(e)
|
||||
{
|
||||
// Remove focus after click
|
||||
// Remove focus and hide any tooltips after click
|
||||
document.activeElement.blur();
|
||||
$(".tooltip").tooltip("hide");
|
||||
});
|
||||
|
Reference in New Issue
Block a user