Service notes are not displayed on stage remote view when the current service item is the last.

bzr-revno: 1806
This commit is contained in:
Jérémie Nau 2011-11-27 23:03:17 +02:00 committed by Raoul Snyman
commit 2b0fc0f2ad
1 changed files with 5 additions and 4 deletions

View File

@ -30,10 +30,11 @@ window.OpenLP = {
$("#notes").html(""); $("#notes").html("");
for (idx in data.results.items) { for (idx in data.results.items) {
idx = parseInt(idx, 10); idx = parseInt(idx, 10);
if ((data.results.items[idx]["selected"]) && if (data.results.items[idx]["selected"]) {
(data.results.items.length > idx + 1)) { $("#notes").html(data.results.items[idx]["notes"].replace(/\n/g, "<br />"));
$("#notes").html(data.results.items[idx]["notes"]); if (data.results.items.length > idx + 1) {
OpenLP.nextSong = data.results.items[idx + 1]["title"]; OpenLP.nextSong = data.results.items[idx + 1]["title"];
}
break; break;
} }
} }