mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 09:49:30 +02:00
Fix the table overflow on small screens.
Docking playlist to top when scrolling in reborn theme.
This commit is contained in:
parent
865e70649e
commit
73d9b3c523
3 changed files with 33 additions and 1 deletions
|
@ -21,6 +21,22 @@ $(document).ready(function () {
|
|||
$('.default_hidden').hide();
|
||||
});
|
||||
|
||||
$(function() {
|
||||
var rightmenu = $("#rightbar");
|
||||
var rightsubmenu = $("#rightbar .submenu");
|
||||
var pos = rightmenu.offset();
|
||||
$(window).scroll(function() {
|
||||
if ($(this).scrollTop() > (pos.top - 60)) {
|
||||
rightmenu.addClass('fixedrightbar');
|
||||
rightsubmenu.addClass('fixedrightbarsubmenu');
|
||||
}
|
||||
else if ($(this).scrollTop() <= pos.top && rightmenu.hasClass('fixedrightbar')) {
|
||||
rightmenu.removeClass('fixedrightbar');
|
||||
rightsubmenu.removeClass('fixedrightbarsubmenu');
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
// flipField
|
||||
// Toggles the disabled property on the specifed field
|
||||
function flipField(field) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue