mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Fix popover relocating on window resizing
Also stay under the navbar if scrolling down the page.
This commit is contained in:
parent
0204478483
commit
685f8cabdb
2 changed files with 20 additions and 1 deletions
|
@ -87,7 +87,7 @@
|
|||
|
||||
var users_to_purge = [];
|
||||
$('#row-edit-mode').on('click', function () {
|
||||
$(this).parents('span#purge-message').popover('toggle');
|
||||
$('#purge-message').popover();
|
||||
|
||||
if ($(this).hasClass('active')) {
|
||||
users_to_purge = [];
|
||||
|
@ -141,6 +141,15 @@
|
|||
|
||||
}
|
||||
});
|
||||
|
||||
$(window).resize(function () {
|
||||
if ($('.popover').popover().is(':visible')) {
|
||||
var popover = $('.popover');
|
||||
popover.addClass("noTransition");
|
||||
$('#purge-message').popover('show');
|
||||
popover.removeClass("noTransition");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$("#refresh-users-list").click(function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue