changed pagination current to middle
This commit is contained in:
parent
688030d85b
commit
274a107043
@ -57,9 +57,10 @@ const slideRange = Math.floor(totalSlidePage / 2);
|
||||
|
||||
slide = function() {
|
||||
startPage = $("#pagin li a.current").parent().index();
|
||||
let paginationStart = (startPage - slideRange) < 0 ? 0 :
|
||||
let paginationStart = (startPage - slideRange) <= 1 ? 0 :
|
||||
(startPage >= (pageCount - slideRange) ? (pageCount - totalSlidePage) :
|
||||
(startPage - slideRange));
|
||||
(startPage - slideRange - 1));
|
||||
|
||||
|
||||
$("#pagin li").hide();
|
||||
for (let t = paginationStart; t < (paginationStart + totalSlidePage); t++) {
|
||||
|
Loading…
Reference in New Issue
Block a user