Fix calculation of available next pages

Closes #2509
This commit is contained in:
Steve Purcell 2015-02-16 11:49:35 +00:00
parent 1ac16abd2c
commit 31c34fa453

View file

@ -189,7 +189,7 @@
Math.floor((this.windowSize() - 1) / 2));
};
this.nextPages = function() {
return _.first(_.range(this.pageNumber() + 1, this.maxPage()),
return _.first(_.range(this.pageNumber() + 1, 1 + this.maxPage()),
this.windowSize() - 1 - this.prevPages().length);
};
};