From 173915f956fcb488310df866832ecb0a424ac5fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20P=C3=B5ldaru?= Date: Fri, 23 Dec 2011 18:03:37 +0200 Subject: [PATCH] Made search function's replace greedy as well. Thanks to gushie the world is better place now :). --- openlp/plugins/remotes/html/openlp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/plugins/remotes/html/openlp.js b/openlp/plugins/remotes/html/openlp.js index 5c991a018..56c0c5859 100644 --- a/openlp/plugins/remotes/html/openlp.js +++ b/openlp/plugins/remotes/html/openlp.js @@ -222,7 +222,7 @@ window.OpenLP = { search: function (event) { event.preventDefault(); var text = "{\"request\": {\"text\": \"" + - $("#search-text").val().replace("\\", "\\\\").replace("\"", "\\\"") + + $("#search-text").val().replace(/\\/g, "\\\\").replace(/"/g, "\\\"") + "\"}}"; $.getJSON( "/api/" + $("#search-plugin").val() + "/search",