fixed page indicator bug

This commit is contained in:
Bala Clark 2011-09-10 15:34:57 +02:00
parent 08412333c8
commit a53be3b441

View file

@ -631,7 +631,8 @@ function ComicBook(id, srcs, opts) {
ComicBook.prototype.enhance[action](options); ComicBook.prototype.enhance[action](options);
}); });
var current_page = (options.displayMode === "double") ? (pointer+1) + "-" + (pointer+2) : pointer+1 var current_page = (options.displayMode === "double" && pointer+2 <= srcs.length)
? (pointer+1) + "-" + (pointer+2) : pointer+1
$("#cb-current-page").text(current_page); $("#cb-current-page").text(current_page);
// revert page mode back to double if it was auto switched for a double page spread // revert page mode back to double if it was auto switched for a double page spread