Fix JS error in OpenLP.js

A fix for issues: http://support.openlp.org/issues/703
http://support.openlp.org/issues/677

bzr-revno: 1995
This commit is contained in:
Philip Ridout 2012-06-17 09:13:47 +01:00 committed by Tim Bentley
commit 79299f15cd
1 changed files with 3 additions and 0 deletions

View File

@ -245,6 +245,9 @@ window.OpenLP = {
}
else {
$.each(data.results.items, function (idx, value) {
if (typeof value[0] !== "number"){
value[0] = OpenLP.escapeString(value[0])
}
ul.append($("<li>").append($("<a>").attr("href", "#options")
.attr("data-rel", "dialog").attr("value", value[0])
.click(OpenLP.showOptions).text(value[1])));