minor fixes: #860, #861, #870
[redakcja.git] / redakcja / static / js / wiki / view_gallery.js
index 1be30bf..4f6b8a1 100644 (file)
 
     ScanGalleryPerspective.prototype.setPage = function(newPage){
         newPage = normalizeNumber(newPage, this.doc.galleryImages.length);
 
     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]);
         this.$numberInput.val(newPage);
                this.config().page = newPage;
         $('.gallery-image img', this.$element).attr('src', this.doc.galleryImages[newPage - 1]);
         $.wiki.Perspective.prototype.onEnter.call(this);
 
         $('.vsplitbar').not('.active').trigger('click');
         $.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();
         this.doc.refreshGallery({
             success: function(doc, data){
                 self.$image.show();