Change the tooltip attach method (#1604)

Change the tooltip attach method
10.7.0-preview
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
1 changed files with 3 additions and 7 deletions

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