Next attempt to fix tooltip flickering problems (references #66 and #51)

This commit is contained in:
Bernd Bestel
2018-09-25 16:24:43 +02:00
parent 8008fcdc65
commit 5112e0f551
10 changed files with 24 additions and 8 deletions

View File

@@ -54,6 +54,10 @@ $(".status-filter-button").on("click", function()
$(document).on('click', '.track-charge-cycle-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();
var batteryId = $(e.currentTarget).attr('data-battery-id');
var batteryName = $(e.currentTarget).attr('data-battery-name');

View File

@@ -54,6 +54,10 @@ $(".status-filter-button").on("click", function()
$(document).on('click', '.track-chore-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();
var choreId = $(e.currentTarget).attr('data-chore-id');
var choreName = $(e.currentTarget).attr('data-chore-name');

View File

@@ -66,6 +66,10 @@ $("#search").on("keyup", function()
$(document).on('click', '.product-consume-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();
var productId = $(e.currentTarget).attr('data-product-id');
var productName = $(e.currentTarget).attr('data-product-name');

View File

@@ -58,6 +58,10 @@ $(".status-filter-button").on("click", function()
$(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();
var taskId = $(e.currentTarget).attr('data-task-id');
var taskName = $(e.currentTarget).attr('data-task-name');