Removed the int typecast and removed executable permissions from the json2.js file.

This commit is contained in:
Raoul Snyman 2011-05-31 20:20:23 +02:00
parent 09d63871d8
commit 6572e7a225
2 changed files with 5 additions and 2 deletions

0
openlp/plugins/remotes/html/json2.js Executable file → Normal file
View File

View File

@ -220,7 +220,10 @@ window.OpenLP = {
}
else {
$.each(data.results.items, function (idx, value) {
ul.append($("<li>").append($("<a>").attr("href", "#options").attr("data-rel", "dialog").attr("data-transition", "pop").attr("value", value[0]).click(OpenLP.showOptions).text(value[1])));
ul.append($("<li>").append($("<a>").attr("href", "#options")
.attr("data-rel", "dialog").attr("data-transition", "pop")
.attr("value", value[0]).click(OpenLP.showOptions)
.text(value[1])));
});
}
ul.listview("refresh");
@ -245,7 +248,7 @@ window.OpenLP = {
},
addToService: function (event) {
var id = $("#selected-item").val();
var text = JSON.stringify({"request": {"id": parseInt(id, 10)}});
var text = JSON.stringify({"request": {"id": id}});
$.getJSON(
"/api/" + $("#search-plugin").val() + "/add",
{"data": text},