forked from openlp/openlp
Service notes are not displayed on stage remote view when the current service item is the last.
This commit is contained in:
parent
fee0f79a73
commit
8e86f21cbd
@ -30,10 +30,11 @@ window.OpenLP = {
|
||||
$("#notes").html("");
|
||||
for (idx in data.results.items) {
|
||||
idx = parseInt(idx, 10);
|
||||
if ((data.results.items[idx]["selected"]) &&
|
||||
(data.results.items.length > idx + 1)) {
|
||||
$("#notes").html(data.results.items[idx]["notes"]);
|
||||
if (data.results.items[idx]["selected"]) {
|
||||
$("#notes").html(data.results.items[idx]["notes"].replace(/\n/g, "<br />"));
|
||||
if (data.results.items.length > idx + 1) {
|
||||
OpenLP.nextSong = data.results.items[idx + 1]["title"];
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user