X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/13584ed72497d3d447595a5a930ecc8a0051be44..1896ffefd4c448d4445bb510e9ac5992a8f20361:/redakcja/static/js/wiki/view_editor_source.js diff --git a/redakcja/static/js/wiki/view_editor_source.js b/redakcja/static/js/wiki/view_editor_source.js index 9fc99227..0597140d 100644 --- a/redakcja/static/js/wiki/view_editor_source.js +++ b/redakcja/static/js/wiki/view_editor_source.js @@ -100,6 +100,10 @@ console.log('Exiting', this.doc); this.doc.setText(this.codemirror.getCode()); + if ($('.vsplitbar').hasClass('active') && $('#SearchPerspective').hasClass('active')) { + $.wiki.switchToTab('#ScanGalleryPerspective'); + } + if(success) success(); }