Commit 4f500c0b authored by Patrick's avatar Patrick
Browse files

fix issue with wrong number in the number count

parent 87155984
......@@ -44,12 +44,12 @@ var nextpage = function() {
document.getElementById("previousbutton").disabled = true;
}
startnumb += 1
endnumb += 1
// endnumb += 1
if (endnumb >= stuff_paper.length){
endnumb = stuff_paper.length
document.getElementById("nextbutton").disabled = true;
}
document.getElementById("papercount").innerHTML = startnumb + " - " + endnumb + " (" + stuff_paper.length + ")";
document.getElementById("papercount").innerHTML = startnumb + " - " + endnumb + " (" + stuff_paper.length + ")";
// }
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment