From 9e7d62b62dbb230ece3b9caaf4cacc883329c440 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sat, 8 Jun 2019 16:39:35 +0200 Subject: [PATCH] Make sure to hide all tooltips before removing an element (fixes #260) --- localization/strings.pot | 3 +++ public/viewjs/stockoverview.js | 1 + public/viewjs/tasks.js | 2 ++ 3 files changed, 6 insertions(+) diff --git a/localization/strings.pot b/localization/strings.pot index a0c93211..e45c8414 100644 --- a/localization/strings.pot +++ b/localization/strings.pot @@ -1262,3 +1262,6 @@ msgstr "" msgid "Products" msgstr "" + +msgid "Marked task %s as completed on %s" +msgstr "" diff --git a/public/viewjs/stockoverview.js b/public/viewjs/stockoverview.js index 0edc291b..b8ac1e3d 100644 --- a/public/viewjs/stockoverview.js +++ b/public/viewjs/stockoverview.js @@ -121,6 +121,7 @@ $(document).on('click', '.product-consume-button', function(e) { $('#product-' + productId + '-row').fadeOut(500, function() { + $(this).tooltip("hide"); $(this).remove(); }); } diff --git a/public/viewjs/tasks.js b/public/viewjs/tasks.js index 5306fd8e..edbdd0c9 100644 --- a/public/viewjs/tasks.js +++ b/public/viewjs/tasks.js @@ -78,6 +78,7 @@ $(document).on('click', '.do-task-button', function(e) { $('#task-' + taskId + '-row').fadeOut(500, function () { + $(this).tooltip("hide"); $(this).remove(); }); } @@ -129,6 +130,7 @@ $(document).on('click', '.delete-task-button', function (e) { $('#task-' + objectId + '-row').fadeOut(500, function () { + $(this).tooltip("hide"); $(this).remove(); }); },