fix adding document bug
[redakcja.git] / redakcja / static / js / wiki / view_gallery.js
index 8679348..ec486bc 100644 (file)
 
         $.wiki.Perspective.prototype.onEnter.call(this);
 
 
         $.wiki.Perspective.prototype.onEnter.call(this);
 
+        $('.vsplitbar').not('.active').trigger('click');
+
         this.doc.refreshGallery({
             success: function(doc, data){
                 self.$image.show();
         this.doc.refreshGallery({
             success: function(doc, data){
                 self.$image.show();