Return filename in text for non-text types. Display verse tag in remote view

This commit is contained in:
Jonathan Corwin 2011-05-17 23:00:50 +01:00
parent c23e5e784e
commit 2d5d16b40b
2 changed files with 5 additions and 3 deletions

View File

@ -76,7 +76,9 @@ window.OpenLP = {
var ul = $("#slide-controller > div[data-role=content] > ul[data-role=listview]");
ul.html("");
for (idx in data.results.slides) {
var text = data.results.slides[idx]["text"];
var text = data.results.slides[idx]["tag"];
if (text != "") text = text + ": ";
text = text + data.results.slides[idx]["text"];
text = text.replace(/\n/g, '<br />');
var li = $("<li data-icon=\"false\">").append(
$("<a href=\"#\">").attr("value", parseInt(idx, 10)).html(text));

View File

@ -412,8 +412,8 @@ class HttpConnection(object):
item[u'html'] = unicode(frame[u'html'])
else:
item[u'tag'] = unicode(index + 1)
item[u'text'] = u''
item[u'html'] = u''
item[u'text'] = unicode(frame[u'title'])
item[u'html'] = unicode(frame[u'title'])
item[u'selected'] = (self.parent.current_slide == index)
data.append(item)
json_data = {u'results': {u'slides': data}}