1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 00:05:22 +03:00

Change the tooltip attach method (#1604)

Change the tooltip attach method
This commit is contained in:
Michael Keller 2019-08-30 01:31:27 +12:00 committed by GitHub
commit 9d6f35c7f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}