From b4077405a07e4c8f7e65bb950d83b7e30a4afdb6 Mon Sep 17 00:00:00 2001 From: haslinghuis Date: Sun, 15 Jan 2023 23:58:10 +0100 Subject: [PATCH] Fix OSD jBox Modal (#3248) --- src/js/tabs/osd.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/js/tabs/osd.js b/src/js/tabs/osd.js index 50635089..37ff4346 100644 --- a/src/js/tabs/osd.js +++ b/src/js/tabs/osd.js @@ -3231,7 +3231,7 @@ osd.initialize = function(callback) { // Generate tooltips for OSD elements $('.osd_tip').each(function() { - OSD.data.tooltips.push($(this).jBox('Tooltip', { + const myModal = new jBox('Tooltip', { delayOpen: 100, delayClose: 100, position: { @@ -3239,7 +3239,11 @@ osd.initialize = function(callback) { y: 'center', }, outside: 'x', - })); + }); + + myModal.attach($(this)); + + OSD.data.tooltips.push(myModal); }); }); }