1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 12:55:14 +03:00

Change the tooltip attach method

This commit is contained in:
Miguel Angel Mulero Martinez 2019-08-28 11:52:57 +02:00
parent e3e79f6e81
commit 34f735e1e7

View file

@ -345,12 +345,9 @@ GUI_control.prototype.content_ready = function (callback) {
// loading tooltip // loading tooltip
jQuery(document).ready(function($) { 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() { new jBox('Tooltip', {
$(this).jBox('Tooltip', { attach: '.cf_tip',
delayOpen: 100, delayOpen: 100,
delayClose: 100, delayClose: 100,
position: { position: {
@ -358,10 +355,9 @@ GUI_control.prototype.content_ready = function (callback) {
y: 'center' y: 'center'
}, },
outside: 'x' outside: 'x'
});
}); });
});
});
if (callback) callback(); if (callback) callback();
} }