Fixed differences in highlighting for expiring/expired items in header vs table on stock overview page (fixes #198)

This commit is contained in:
Bernd Bestel
2019-04-05 18:41:21 +02:00
parent 2d3df2024a
commit 12082b52ab
3 changed files with 13 additions and 3 deletions

View File

@@ -511,3 +511,13 @@ $(document).on("click", ".easy-link-copy-textbox", function()
{
$(this).select();
});
$('.dropdown-toggle').click(function ()
{
dropDownFixPosition($('button'), $('.dropdown-menu'));
});
function dropDownFixPosition(button, dropdown)
{
var dropDownTop = button.offset().top + button.outerHeight();
dropdown.css('top', dropDownTop + "px");
dropdown.css('left', button.offset().left + "px");
}