Web interface does not always send all necessary data

bzr-revno: 1164
Fixes: https://launchpad.net/bugs/693694
This commit is contained in:
Raoul Snyman 2010-12-24 10:01:52 +00:00 committed by Tim Bentley
commit b9bfb14c21

View File

@ -206,8 +206,12 @@ OpenLP.Namespace.create("OpenLP.Remote", {
},
sendLiveSet: function (e)
{
var id = OpenLP.Events.getElement(e).parent().attr("value");
OpenLP.Remote.sendEvent("slidecontroller_live_set", id);
var tr = OpenLP.Events.getElement(e).parent();
if (tr[0].tagName != "TR")
{
tr = tr.parent();
}
OpenLP.Remote.sendEvent("slidecontroller_live_set", tr.attr("value"));
return false;
},
sendSetItem: function (e)