X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/1fbf854ce423d2d56723ff10608267403f4916b0..800bc0a9753b761c8b3f7b2eb9320226332c8399:/redakcja/static/js/wiki/view_search.js?ds=sidebyside diff --git a/redakcja/static/js/wiki/view_search.js b/redakcja/static/js/wiki/view_search.js index 34393dc4..789a9613 100644 --- a/redakcja/static/js/wiki/view_search.js +++ b/redakcja/static/js/wiki/view_search.js @@ -64,8 +64,7 @@ self.searchCursor = self.editor.getSearchCursor( self.$searchInput.val(), self.options['search-from-cursor'], - self.options['search-regexp'], - self.options['search-case-sensitive'] + !self.options['search-case-sensitive'] ); } if (self.searchCursor.findNext()) { @@ -100,6 +99,8 @@ self.$searchCursor = null; $('.vsplitbar').not('.active').trigger('click'); + $(".vsplitbar-title").html("↓ SEARCH AND REPLACE ↓"); + if ($.wiki.activePerspective() != 'CodeMirrorPerspective') $.wiki.switchToTab('#CodeMirrorPerspective'); }; @@ -110,4 +111,4 @@ $.wiki.SearchPerspective = SearchPerspective; -})(jQuery); \ No newline at end of file +})(jQuery);