Fix JS event not found error when being called from poll response.

This commit is contained in:
Mattias Põldaru 2012-03-17 08:19:52 +02:00
parent 081f9b04c2
commit 76221b4f52

View File

@ -72,7 +72,9 @@ window.OpenLP = {
); );
}, },
loadController: function (event) { loadController: function (event) {
event.preventDefault(); if (event) {
event.preventDefault();
}
$.getJSON( $.getJSON(
"/api/controller/live/text", "/api/controller/live/text",
function (data, status) { function (data, status) {