From 6572e7a22544a4afa880a421d547ee9555065b19 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Tue, 31 May 2011 20:20:23 +0200 Subject: [PATCH] Removed the int typecast and removed executable permissions from the json2.js file. --- openlp/plugins/remotes/html/json2.js | 0 openlp/plugins/remotes/html/openlp.js | 7 +++++-- 2 files changed, 5 insertions(+), 2 deletions(-) mode change 100755 => 100644 openlp/plugins/remotes/html/json2.js diff --git a/openlp/plugins/remotes/html/json2.js b/openlp/plugins/remotes/html/json2.js old mode 100755 new mode 100644 diff --git a/openlp/plugins/remotes/html/openlp.js b/openlp/plugins/remotes/html/openlp.js index 4bed55e94..038763fe5 100644 --- a/openlp/plugins/remotes/html/openlp.js +++ b/openlp/plugins/remotes/html/openlp.js @@ -220,7 +220,10 @@ window.OpenLP = { } else { $.each(data.results.items, function (idx, value) { - ul.append($("
  • ").append($("").attr("href", "#options").attr("data-rel", "dialog").attr("data-transition", "pop").attr("value", value[0]).click(OpenLP.showOptions).text(value[1]))); + ul.append($("
  • ").append($("").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},