From 717643bdf87c1447a8d312d26307feee6a733b97 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Wed, 14 May 2014 11:43:44 +0200 Subject: [PATCH] Automatically search for the next match after single replace, fixes #3384 --- redakcja/static/js/wiki/view_search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redakcja/static/js/wiki/view_search.js b/redakcja/static/js/wiki/view_search.js index 21127dc3..b49671c6 100644 --- a/redakcja/static/js/wiki/view_search.js +++ b/redakcja/static/js/wiki/view_search.js @@ -90,7 +90,7 @@ else {} self.searchCursor.select(); self.searchCursor.replace(query); - if(self.options['replace-all'] && self.search()) { + if(self.search() && self.options['replace-all']) { self.replace(); } }; -- 2.20.1