forked from openlp/openlp
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:
parent
266e8eb29b
commit
8f8e5558a2
@ -245,6 +245,9 @@ window.OpenLP = {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$.each(data.results.items, function (idx, value) {
|
$.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")
|
ul.append($("<li>").append($("<a>").attr("href", "#options")
|
||||||
.attr("data-rel", "dialog").attr("value", value[0])
|
.attr("data-rel", "dialog").attr("value", value[0])
|
||||||
.click(OpenLP.showOptions).text(value[1])));
|
.click(OpenLP.showOptions).text(value[1])));
|
||||||
|
Loading…
Reference in New Issue
Block a user