From 514773abe85bbc7dfcb7fc71906344ee1fdff072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20P=C3=B5ldaru?= Date: Fri, 23 Dec 2011 17:47:36 +0200 Subject: [PATCH] Make replace work for two or more occurrences. --- 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 8e4f1cbfc..5c991a018 100644 --- a/openlp/plugins/remotes/html/openlp.js +++ b/openlp/plugins/remotes/html/openlp.js @@ -209,7 +209,7 @@ window.OpenLP = { showAlert: function (event) { event.preventDefault(); var text = "{\"request\": {\"text\": \"" + - $("#alert-text").val().replace("\\", "\\\\").replace("\"", "\\\"") + + $("#alert-text").val().replace(/\\/g, "\\\\").replace(/"/g, "\\\"") + "\"}}"; $.getJSON( "/api/alert",