X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3cff6e4a3f7e7acceacbc621f9196204b508121e..cbae1e671056708da934db5f07f8a5e9d9afc95c:/redakcja/static/js/wiki/view_editor_source.js?ds=sidebyside 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(); }