X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3cff6e4a3f7e7acceacbc621f9196204b508121e..5b8b74cc22768b7d3144287f5bd9111479179383:/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(); }