diff --git a/openlp/plugins/remotes/html/index.html b/openlp/plugins/remotes/html/index.html index 67621f790..f1499ec4d 100644 --- a/openlp/plugins/remotes/html/index.html +++ b/openlp/plugins/remotes/html/index.html @@ -116,7 +116,7 @@ function new_response(eventname, text){ var table = $("
").text(item.tag)) + .append($(" | ").text(item.tag.replace(/\n/g, " "))); + return false; + }, + sendLive: function (e) + { + var elem = OpenLP.Events.getElement(e); + var row = elem.attr("id").substr(5); + elem.addStyle("font-weight", "bold"); + return false; + } +}); + +OpenLP.Events.load(function (){ + OpenLP.Events.liveClick(".item", OpenLP.Service.sendLive); +}); \ No newline at end of file diff --git a/openlp/plugins/remotes/lib/httpserver.py b/openlp/plugins/remotes/lib/httpserver.py index 790a41f3f..2c12eac76 100644 --- a/openlp/plugins/remotes/lib/httpserver.py +++ b/openlp/plugins/remotes/lib/httpserver.py @@ -25,9 +25,13 @@ import logging import os -import json import urlparse +try: + import json +except ImportError: + import simplejson as json + from PyQt4 import QtCore, QtNetwork from openlp.core.lib import Receiver @@ -185,7 +189,7 @@ class HttpConnection(object): Ultimately for i18n, this could first look for xx/file.html before falling back to file.html... where xx is the language, e.g. 'en' """ - log.debug(u'serve file request %s' % filename) + log.debug(u'serve file request %s' % filename) if not filename: filename = u'index.html' path = os.path.normpath(os.path.join(self.parent.html_dir, filename)) |