this.dimensions = {};
this.zoomFactor = 1;
- this.config().page = CurrentDocument.galleryStart;
+ if (this.config().page == undefined)
+ this.config().page = CurrentDocument.galleryStart;
this.$element = $("#side-gallery");
this.$numberInput = $('.page-number', this.$element);
self.setPage($(this).val());
});
+ $('.start-page', this.$element).click(function(){
+ self.setPage(CurrentDocument.galleryStart);
+ });
+
$('.previous-page', this.$element).click(function(){
self.setPage(parseInt(self.$numberInput.val(),10) - 1);
});