mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 01:02:59 -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
|
@ -1697,9 +1697,19 @@ input[type="color"],
|
|||
color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
.popover {
|
||||
z-index: 2;
|
||||
}
|
||||
.popover .popover-content {
|
||||
color: #000;
|
||||
}
|
||||
.noTransition
|
||||
{
|
||||
-moz-transition: none !important;
|
||||
-webkit-transition: none !important;
|
||||
-o-transition: none !important;
|
||||
transition: none !important;
|
||||
}
|
||||
#users-to-delete > li {
|
||||
color: #e9a049;
|
||||
}
|
||||
|
|
|
@ -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