X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/ec5b493bff5efa683aadf5f78aa891eff3550156..ee77d43cb32edb0f8b838204e0583ab1a2757d3a:/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 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(); } };