Merge pull request #60 from idlesysop/master

Fix bug in check for last page to set e.preventDefault()
This commit is contained in:
Emmanuel Garcia 2012-04-21 08:55:07 -07:00
commit 7cd93f4898

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) {