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:
parent
e3e79f6e81
commit
34f735e1e7
1 changed files with 3 additions and 7 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue