diff --git a/openlp/plugins/remotes/html/openlp.js b/openlp/plugins/remotes/html/openlp.js index 93197b160..686b61e29 100644 --- a/openlp/plugins/remotes/html/openlp.js +++ b/openlp/plugins/remotes/html/openlp.js @@ -93,6 +93,7 @@ window.OpenLP = { li.children("a").click(OpenLP.setSlide); ul.append(li); } + OpenLP.currentItem = data.results.item; ul.listview("refresh"); } ); diff --git a/openlp/plugins/remotes/lib/httpserver.py b/openlp/plugins/remotes/lib/httpserver.py index 67ab34a18..45aa78418 100644 --- a/openlp/plugins/remotes/lib/httpserver.py +++ b/openlp/plugins/remotes/lib/httpserver.py @@ -463,6 +463,8 @@ class HttpConnection(object): item[u'selected'] = (self.parent.current_slide == index) data.append(item) json_data = {u'results': {u'slides': data}} + if current_item: + json_data[u'results'][u'item'] = self.parent.current_item._uuid else: if self.url_params and self.url_params.get(u'data'): data = json.loads(self.url_params[u'data'][0])