Skip to content

Commit b407740

Browse files
authored
Fix OSD jBox Modal (#3248)
1 parent 771b840 commit b407740

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/js/tabs/osd.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3231,15 +3231,19 @@ osd.initialize = function(callback) {
32313231

32323232
// Generate tooltips for OSD elements
32333233
$('.osd_tip').each(function() {
3234-
OSD.data.tooltips.push($(this).jBox('Tooltip', {
3234+
const myModal = new jBox('Tooltip', {
32353235
delayOpen: 100,
32363236
delayClose: 100,
32373237
position: {
32383238
x: 'right',
32393239
y: 'center',
32403240
},
32413241
outside: 'x',
3242-
}));
3242+
});
3243+
3244+
myModal.attach($(this));
3245+
3246+
OSD.data.tooltips.push(myModal);
32433247
});
32443248
});
32453249
}

0 commit comments

Comments
 (0)