X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/92e49288fda5de1a079578f10512409a796ae24e..f3703baa367152de441b52b49a523ae0d67465fc:/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 c487d462..4f6b8a15 100644 --- a/redakcja/static/js/wiki/view_gallery.js +++ b/redakcja/static/js/wiki/view_gallery.js @@ -139,7 +139,7 @@ ScanGalleryPerspective.prototype.setPage = function(newPage){ newPage = normalizeNumber(newPage, this.doc.galleryImages.length); - $('#imagesCount').val(this.doc.galleryImages.length); + $('#imagesCount').html("/"+this.doc.galleryImages.length); this.$numberInput.val(newPage); this.config().page = newPage; $('.gallery-image img', this.$element).attr('src', this.doc.galleryImages[newPage - 1]); @@ -225,6 +225,9 @@ $.wiki.Perspective.prototype.onEnter.call(this); + $('.vsplitbar').not('.active').trigger('click'); + $(".vsplitbar-title").html("↓ GALLERY ↓"); + this.doc.refreshGallery({ success: function(doc, data){ self.$image.show();