From 34f735e1e7a03acd78fadb8fab98186dd164703f Mon Sep 17 00:00:00 2001 From: Miguel Angel Mulero Martinez Date: Wed, 28 Aug 2019 11:52:57 +0200 Subject: [PATCH] Change the tooltip attach method --- src/js/gui.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/js/gui.js b/src/js/gui.js index b4f9fd55..e0c2e930 100644 --- a/src/js/gui.js +++ b/src/js/gui.js @@ -345,12 +345,9 @@ GUI_control.prototype.content_ready = function (callback) { // loading tooltip jQuery(document).ready(function($) { - $('cf_tip').each(function() { // Grab all ".cf_tip" elements, and for each... - log(this); // ...print out "this", which now refers to each ".cf_tip" DOM element - }); - $('.cf_tip').each(function() { - $(this).jBox('Tooltip', { + new jBox('Tooltip', { + attach: '.cf_tip', delayOpen: 100, delayClose: 100, position: { @@ -358,10 +355,9 @@ GUI_control.prototype.content_ready = function (callback) { y: 'center' }, outside: 'x' - }); }); - }); + }); if (callback) callback(); }