Image editor fix: bring back horizontal scrollbar in motifs and objects perspective
[redakcja.git] / 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();
         }
     };