Fixed error when logging out and in, and made the next/prev buttons more button'y

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-17 19:33:02 +01:00
parent 3629d82499
commit 2c4ca881be
6 changed files with 37 additions and 17 deletions

View File

@@ -166,7 +166,8 @@ function init(){
Crypt.set_width($(this).width());
},
handles: "e",
minWidth: 350
minWidth: 350,
maxWidth: $(window).width()-221
});
if(socket === undefined || Helper.mobilecheck()){
@@ -821,7 +822,7 @@ $(document).on("mousemove", "#playlist", function(e)
if(((y <= 80 && y >= 48)) && $("#wrapper").scrollTop() > 0){
$("#top-button").removeClass("hide");
Helper.addClass("#bottom-button", "hide");
}else if(y >= $("#playlist").height() - 45 && y <= $("#playlist").height() - 18 && $("#wrapper").scrollTop() < $("#wrapper")[0].scrollHeight - $("#wrapper").height() - 1){
}else if(y >= $("#playlist").height() - 59 && y <= $("#playlist").height() - 32 && $("#wrapper").scrollTop() < $("#wrapper")[0].scrollHeight - $("#wrapper").height() - 1){
$("#bottom-button").removeClass("hide");
Helper.addClass("#top-button", "hide");
}else{