X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/06e1d514d3ab31269add6b120fd9481c895fa449..0c8f0ff3f3b4f2f6f5a4e4b18bc7d2d347a89c05:/redakcja/static/js/wiki/view_search.js?ds=inline diff --git a/redakcja/static/js/wiki/view_search.js b/redakcja/static/js/wiki/view_search.js index e41f19d6..ae0fd2db 100644 --- a/redakcja/static/js/wiki/view_search.js +++ b/redakcja/static/js/wiki/view_search.js @@ -90,9 +90,12 @@ else {} self.searchCursor.select(); self.searchCursor.replace(query); + var found = self.search(); if(self.options['replace-all']) { - while(self.search()) + while(found) { self.replace(); + found = self.search(); + } } };