newPage = normalizeNumber(newPage, this.doc.galleryImages.length);
this.$numberInput.val(newPage);
this.config().page = newPage;
- $('.gallery-image img', this.$element).attr('src', this.doc.galleryImages[newPage - 1]);
+ $('.gallery-image img', this.$element).attr('src', this.doc.galleryImages[newPage - 1].url);
};
ScanGalleryPerspective.prototype.alterZoom = function(delta){