openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #13588
[Merge] lp:~mahfiaz/openlp/bug-354 into lp:openlp
mahfiaz has proposed merging lp:~mahfiaz/openlp/bug-354 into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
For more details, see:
https://code.launchpad.net/~mahfiaz/openlp/bug-354/+merge/86812
Fix for #354. Javascript generated buggy JSON in remote when sending alert.
--
https://code.launchpad.net/~mahfiaz/openlp/bug-354/+merge/86812
Your team OpenLP Core is requested to review the proposed merge of lp:~mahfiaz/openlp/bug-354 into lp:openlp.
=== modified file 'openlp/plugins/remotes/html/openlp.js'
--- openlp/plugins/remotes/html/openlp.js 2011-12-21 08:15:07 +0000
+++ openlp/plugins/remotes/html/openlp.js 2011-12-23 14:59:26 +0000
@@ -208,7 +208,7 @@
},
showAlert: function (event) {
event.preventDefault();
- var text = "{\"request\": {\"text\": " + $("#alert-text").val() + "}}";
+ var text = "{\"request\": {\"text\": \"" + $("#alert-text").val() + "\"}}";
$.getJSON(
"/api/alert",
{"data": text},
Follow ups