From 76221b4f528243efad372d7ba4b3af7fb4e12d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20P=C3=B5ldaru?= Date: Sat, 17 Mar 2012 08:19:52 +0200 Subject: [PATCH] Fix JS event not found error when being called from poll response. --- openlp/plugins/remotes/html/openlp.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openlp/plugins/remotes/html/openlp.js b/openlp/plugins/remotes/html/openlp.js index 33941c1b9..93197b160 100644 --- a/openlp/plugins/remotes/html/openlp.js +++ b/openlp/plugins/remotes/html/openlp.js @@ -72,7 +72,9 @@ window.OpenLP = { ); }, loadController: function (event) { - event.preventDefault(); + if (event) { + event.preventDefault(); + } $.getJSON( "/api/controller/live/text", function (data, status) {