mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
form tooltips pop from right.
This commit is contained in:
parent
94807ac00b
commit
7d7cdfa148
1 changed files with 8 additions and 1 deletions
|
@ -4,6 +4,13 @@ define(
|
||||||
'bootstrap'
|
'bootstrap'
|
||||||
], function () {
|
], function () {
|
||||||
$(document).on('mouseenter', '[title]', function () {
|
$(document).on('mouseenter', '[title]', function () {
|
||||||
$(this).tooltip('show');
|
|
||||||
|
var element = $(this);
|
||||||
|
|
||||||
|
if (!element.attr('data-placement') && element.parents('.control-group').length > 0) {
|
||||||
|
element.attr('data-placement', 'right');
|
||||||
|
}
|
||||||
|
|
||||||
|
element.tooltip('show');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue