mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed error with wrong positioning on newly voted song
This commit is contained in:
2
static/dist/embed.min.js
vendored
2
static/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
2
static/dist/main.min.js
vendored
2
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -62,7 +62,7 @@ var List = {
|
|||||||
if(display == "block" && $("#wrapper").children().length >= List.page + List.can_fit + 1){
|
if(display == "block" && $("#wrapper").children().length >= List.page + List.can_fit + 1){
|
||||||
$($("#wrapper").children()[List.page + List.can_fit]).css("display", "none");
|
$($("#wrapper").children()[List.page + List.can_fit]).css("display", "none");
|
||||||
} else if(i < List.page && $("#wrapper").children().length - (List.page + 1) >= 0){
|
} else if(i < List.page && $("#wrapper").children().length - (List.page + 1) >= 0){
|
||||||
$($("#wrapper").children()[List.page - 1]).css("display", "block");
|
$($("#wrapper").children()[List.page]).css("display", "block");
|
||||||
} else if($("#wrapper").children().length > List.page + List.can_fit){
|
} else if($("#wrapper").children().length > List.page + List.can_fit){
|
||||||
$($("#wrapper").children()[List.page + List.can_fit - 1]).css("display", "block");
|
$($("#wrapper").children()[List.page + List.can_fit - 1]).css("display", "block");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user