mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 16:43:58 -07:00
This should fix the sticky tooltip issues
Lost some control over positioning based on parents, but we can add data attributes if required
This commit is contained in:
parent
78297e62b2
commit
c132d54ff7
2 changed files with 4 additions and 18 deletions
|
@ -3,23 +3,8 @@ define(
|
|||
[
|
||||
'bootstrap'
|
||||
], function () {
|
||||
$(document).on('mouseenter', '[title]', function () {
|
||||
|
||||
var element = $(this);
|
||||
|
||||
if (!element.attr('data-placement') && element.parents('.control-group').length > 0) {
|
||||
element.attr('data-placement', 'right');
|
||||
}
|
||||
|
||||
var container = element.parents('.modal-body');
|
||||
if (container.length === 0) {
|
||||
container = 'body';
|
||||
}
|
||||
|
||||
element.tooltip({
|
||||
container: container
|
||||
});
|
||||
|
||||
element.tooltip('show');
|
||||
$('body').tooltip({
|
||||
selector: '[title]'
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue