From cd577c9a3926c1f718cd18e7478c5e9965a8d0bc Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Fri, 11 Dec 2015 15:46:03 +0100 Subject: overhauled debug view --- js/debug.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/debug.js b/js/debug.js index 633a5c4..4ff95de 100644 --- a/js/debug.js +++ b/js/debug.js @@ -1,15 +1,16 @@ $().ready(function() { + // use ajax to send commands to the server $(".ajax").each(function(x){ $(this).click(function(){ $.ajax({url: $(this).attr("tgt"), success: function(result){ - $("#ajax_result").html(result); + $("#control_reply").html(result); }}); }) }) + // display svg var d = atob(document.getElementById("svg_b64").innerHTML); $('#svg').append($(''+d+'')); - -}) +}); -- cgit v1.2.3