mirror of
https://github.com/blasten/turn.js.git
synced 2025-09-01 21:29:49 +08:00
Merge pull request #60 from idlesysop/master
Fix bug in check for last page to set e.preventDefault()
This commit is contained in:
commit
7cd93f4898
2
turn.js
2
turn.js
@ -987,7 +987,7 @@ turnMethods = {
|
|||||||
if (data.display=='single') {
|
if (data.display=='single') {
|
||||||
|
|
||||||
var left = corner.charAt(1)=='l';
|
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();
|
e.preventDefault();
|
||||||
else {
|
else {
|
||||||
if (left) {
|
if (left) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user