A fix for issues:

http://support.openlp.org/issues/703
http://support.openlp.org/issues/677

The bug was being caused because we were passing file paths for images and presentations. In windows a back slash is used. This needed escaping
This commit is contained in:
Philip Ridout 2012-06-16 01:12:08 +01:00
parent 266e8eb29b
commit 8f8e5558a2
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])));