mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
Merge branch 'master' of github.com:futurepress/epub.js
This commit is contained in:
commit
8a3f72853d
2 changed files with 4 additions and 3 deletions
|
@ -3080,12 +3080,12 @@ EPUBJS.Book.prototype.prevPage = function() {
|
||||||
|
|
||||||
EPUBJS.Book.prototype.nextChapter = function() {
|
EPUBJS.Book.prototype.nextChapter = function() {
|
||||||
var next;
|
var next;
|
||||||
if (this.spinePos < this.spine.length - 1) {
|
if (this.spinePos < this.spine.length ) {
|
||||||
next = this.spinePos + 1;
|
next = this.spinePos + 1;
|
||||||
while (this.spine[next] && this.spine[next].linear && this.spine[next].linear == 'no') {
|
while (this.spine[next] && this.spine[next].linear && this.spine[next].linear == 'no') {
|
||||||
next++;
|
next++;
|
||||||
}
|
}
|
||||||
if (next < this.spine.length - 1) {
|
if (next < this.spine.length ) {
|
||||||
return this.displayChapter(next);
|
return this.displayChapter(next);
|
||||||
} else {
|
} else {
|
||||||
this.trigger("book:atEnd");
|
this.trigger("book:atEnd");
|
||||||
|
|
1
server.js
Normal file → Executable file
1
server.js
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/env node
|
||||||
var connect = require('connect'),
|
var connect = require('connect'),
|
||||||
colors = require('colors'),
|
colors = require('colors'),
|
||||||
argv = require('optimist').argv,
|
argv = require('optimist').argv,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue