Multiplying with correct can_fit number

This commit is contained in:
Kasper Rynning-Tønnesen
2017-01-19 18:10:14 +01:00
parent 9bba760d9b
commit b920b6d100
3 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -155,7 +155,7 @@ var List = {
}, },
dynamicContentPageJumpTo: function(page){ dynamicContentPageJumpTo: function(page){
page = page * 11; page = page * List.can_fit;
if(page > List.page || page < List.page){ if(page > List.page || page < List.page){
$("#wrapper").children().slice(List.page, List.page + List.can_fit).hide(); $("#wrapper").children().slice(List.page, List.page + List.can_fit).hide();
List.page = page; List.page = page;
@@ -174,7 +174,7 @@ var List = {
$(".last_page").css("display", "none"); $(".last_page").css("display", "none");
} }
$("#pageNumber").html(Math.floor((List.page / List.can_fit) + 1)); $("#pageNumber").html((List.page / List.can_fit) + 1);
} }
}, },