Automatically search for the next match after single replace, fixes #3384
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 14 May 2014 09:43:44 +0000 (11:43 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 14 May 2014 09:43:44 +0000 (11:43 +0200)
redakcja/static/js/wiki/view_search.js

index 21127dc..b49671c 100644 (file)
@@ -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();
         }
     };