X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/650db5dfe3ae7ddd3d9e6b93d5ca1f84b20f7309..14bd9f367ed01cb56bdf82356f7ab55bfffb17d4:/redakcja/static/js/wiki/view_gallery.js diff --git a/redakcja/static/js/wiki/view_gallery.js b/redakcja/static/js/wiki/view_gallery.js index 4b74b3e8..315a421b 100644 --- a/redakcja/static/js/wiki/view_gallery.js +++ b/redakcja/static/js/wiki/view_gallery.js @@ -55,7 +55,8 @@ 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);