X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/42a46397a91a4bd24211bb98516a99c567247bf8..07689901a9bf30daeccf8a1ceb7193fe771eb3ac:/redakcja/static/js/wiki/view_gallery.js?ds=inline

diff --git a/redakcja/static/js/wiki/view_gallery.js b/redakcja/static/js/wiki/view_gallery.js
index 86793488..56faaa10 100644
--- a/redakcja/static/js/wiki/view_gallery.js
+++ b/redakcja/static/js/wiki/view_gallery.js
@@ -45,6 +45,7 @@
         var old_callback = options.callback || function() { };
 
 		this.noupdate_hash_onenter = true;
+        this.vsplitbar = 'GALERIA';
 
         options.callback = function(){
             var self = this;
@@ -225,6 +226,9 @@
 
         $.wiki.Perspective.prototype.onEnter.call(this);
 
+        $('.vsplitbar').not('.active').trigger('click');
+        $(".vsplitbar-title").html("↓ GALERIA ↓");        
+        
         this.doc.refreshGallery({
             success: function(doc, data){
                 self.$image.show();