Allow assigning woblink authors in catalogue.
[redakcja.git] / src / redakcja / static / js / wiki / view_editor_source.js
index 988d23c..ab8eaf0 100644 (file)
@@ -66,9 +66,7 @@
                $.wiki.Perspective.prototype.onExit.call(this);
            this.doc.setText(this.codemirror.getValue());
 
                $.wiki.Perspective.prototype.onExit.call(this);
            this.doc.setText(this.codemirror.getValue());
 
-            if ($('.vsplitbar').hasClass('active') && $('#SearchPerspective').hasClass('active')) {
-                $.wiki.switchToTab('#ScanGalleryPerspective');
-            }
+            $.wiki.exitTab('#SearchPerspective');
 
            if(success) success();
        }
 
            if(success) success();
        }