From 09d63871d8407188cf51bbe14dcc4cd60e4c35e7 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Tue, 31 May 2011 19:36:32 +0200 Subject: [PATCH] Converted the impromptu page to a dialog for better usability and more translation flexibility. --- openlp/plugins/remotes/html/index.html | 21 ++++++++++++++--- openlp/plugins/remotes/html/openlp.js | 29 +++++++++++++----------- openlp/plugins/remotes/lib/httpserver.py | 3 ++- 3 files changed, 36 insertions(+), 17 deletions(-) diff --git a/openlp/plugins/remotes/html/index.html b/openlp/plugins/remotes/html/index.html index e6d3777c6..4d3076e3a 100644 --- a/openlp/plugins/remotes/html/index.html +++ b/openlp/plugins/remotes/html/index.html @@ -33,11 +33,16 @@ + - - -

${app_title}

@@ -116,5 +121,15 @@
+
+
+

${options}

+
+
+ + ${go_live} + ${add_to_service} +
+
diff --git a/openlp/plugins/remotes/html/openlp.js b/openlp/plugins/remotes/html/openlp.js index 4c2f6d412..4bed55e94 100644 --- a/openlp/plugins/remotes/html/openlp.js +++ b/openlp/plugins/remotes/html/openlp.js @@ -215,16 +215,12 @@ window.OpenLP = { var ul = $("#search > div[data-role=content] > ul[data-role=listview]"); ul.html(""); if (data.results.items.length == 0) { - var li = $("
  • ").text($("#no-results").val()); + var li = $("
  • ").text(translationStrings["no_results"]); ul.append(li); } else { $.each(data.results.items, function (idx, value) { - var item = $("
  • ").text(value[1]); - var golive = $("").attr("value", value[0]).click(OpenLP.goLive).text($("#go-live").val()); - var additem = $("").attr("value", value[0]).click(OpenLP.addToService).text($("#add-to-service").val()); - item.append($("