forked from openlp/openlp
Fix double loading of songs when using remote's search and setting the song live after.
This commit is contained in:
parent
76221b4f52
commit
103d38d016
@ -93,6 +93,7 @@ window.OpenLP = {
|
|||||||
li.children("a").click(OpenLP.setSlide);
|
li.children("a").click(OpenLP.setSlide);
|
||||||
ul.append(li);
|
ul.append(li);
|
||||||
}
|
}
|
||||||
|
OpenLP.currentItem = data.results.item;
|
||||||
ul.listview("refresh");
|
ul.listview("refresh");
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -463,6 +463,8 @@ class HttpConnection(object):
|
|||||||
item[u'selected'] = (self.parent.current_slide == index)
|
item[u'selected'] = (self.parent.current_slide == index)
|
||||||
data.append(item)
|
data.append(item)
|
||||||
json_data = {u'results': {u'slides': data}}
|
json_data = {u'results': {u'slides': data}}
|
||||||
|
if current_item:
|
||||||
|
json_data[u'results'][u'item'] = self.parent.current_item._uuid
|
||||||
else:
|
else:
|
||||||
if self.url_params and self.url_params.get(u'data'):
|
if self.url_params and self.url_params.get(u'data'):
|
||||||
data = json.loads(self.url_params[u'data'][0])
|
data = json.loads(self.url_params[u'data'][0])
|
||||||
|
Loading…
Reference in New Issue
Block a user