From 660c9c092eba715f96ccc589107ec101a9b1fd52 Mon Sep 17 00:00:00 2001 From: grey Date: Mon, 10 Jul 2023 18:18:38 +0200 Subject: [PATCH] make sure all tooltips are hidden before showing new ones to prevent stuck tooltips --- static/js/editCategory.js | 2 +- static/js/editStorages.js | 1 + static/js/itemPageHandler.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/editCategory.js b/static/js/editCategory.js index 91ac32a..1a98d7f 100644 --- a/static/js/editCategory.js +++ b/static/js/editCategory.js @@ -49,8 +49,8 @@ setTimeout(() => { function loadPageData() { itemList.bootstrapTable('refresh') - setTimeout(() => { + $(".tooltip").tooltip("hide"); activateTooltips(); }, 1000); } diff --git a/static/js/editStorages.js b/static/js/editStorages.js index 7a18308..4add17e 100644 --- a/static/js/editStorages.js +++ b/static/js/editStorages.js @@ -150,6 +150,7 @@ function loadPageData() { itemListUnit.bootstrapTable('refresh'); setTimeout(() => { + $(".tooltip").tooltip("hide"); activateTooltips(); }, 1000); } diff --git a/static/js/itemPageHandler.js b/static/js/itemPageHandler.js index 4361fe5..7b9d3c6 100644 --- a/static/js/itemPageHandler.js +++ b/static/js/itemPageHandler.js @@ -14,8 +14,8 @@ setTimeout(() => { function loadPageData() { itemList.bootstrapTable('refresh') - setTimeout(() => { + $(".tooltip").tooltip("hide"); activateTooltips(); }, 1000); }