Fixed check for setting e.preventDefault() if on the last page for data.display === 'single'. Was checking for opts.page==data.pages, corrected to check opts.page==data.totalPages

This commit is contained in:
Tri Nguyen 2012-04-20 17:57:30 -07:00
parent 8b0e272147
commit dc7be695d0

View File

@ -987,7 +987,7 @@ turnMethods = {
if (data.display=='single') {
var left = corner.charAt(1)=='l';
if ((opts.page==1 && left) || (opts.page==data.pages && !left))
if ((opts.page==1 && left) || (opts.page==data.totalPages && !left))
e.preventDefault();
else {
if (left) {