Taking the floor of a division

This commit is contained in:
Kasper Rynning-Tønnesen
2017-01-19 18:08:00 +01:00
parent 02938c7b01
commit 9bba760d9b
3 changed files with 4 additions and 4 deletions

View File

@@ -174,7 +174,7 @@ var List = {
$(".last_page").css("display", "none");
}
$("#pageNumber").html((List.page / List.can_fit) + 1);
$("#pageNumber").html(Math.floor((List.page / List.can_fit) + 1));
}
},