mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 18:29:40 +02:00
Fix temporary playlist initial position when scrolling (fix #901)
This commit is contained in:
parent
f627d3ee3a
commit
620ca4056f
2 changed files with 14 additions and 1 deletions
|
@ -45,10 +45,10 @@ function initTabs()
|
|||
|
||||
$(function() {
|
||||
var rightmenu = $("#rightbar");
|
||||
var rightsubmenu = $("#rightbar .submenu");
|
||||
var pos = rightmenu.offset();
|
||||
if (rightmenu.hasClass('rightbar-float')) {
|
||||
$(window).scroll(function() {
|
||||
var rightsubmenu = $("#rightbar .submenu");
|
||||
if ($(this).scrollTop() > (pos.top)) {
|
||||
rightmenu.addClass('fixedrightbar');
|
||||
rightsubmenu.addClass('fixedrightbarsubmenu');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue