mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 04:45:20 +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
|
||||
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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue