From a1e050bb6b4b4ddd37881daa74d7f12dccce0b0f Mon Sep 17 00:00:00 2001 From: gebele Date: Fri, 20 Oct 2017 12:50:37 +0000 Subject: adjusted order of elements --- views/batch.haml | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) (limited to 'views/batch.haml') diff --git a/views/batch.haml b/views/batch.haml index aaa09bf..fccd88c 100644 --- a/views/batch.haml +++ b/views/batch.haml @@ -26,10 +26,10 @@ // create request if (model == "Cramer"){ var dataset = '#{@dataset.id}'; - var uri = "#{to("/batch/")}" + model + '/?dataset=' + escape(dataset) + '&tmppath=' + tmppath + '&last=' + last; + var uri = "#{to("/batch/")}" + model + '/?dataset=' + escape(dataset) + '&tmppath=' + tmppath; } else { var dataset = '#{@dataset.id}'; - var uri = "#{to("/batch/")}" + model + '/?compound=' + escape(compound) + '&dataset=' + dataset + '&idx=' + idx + '&tmppath=' + tmppath + '&last=' + last; + var uri = "#{to("/batch/")}" + model + '/?compound=' + escape(compound) + '&dataset=' + dataset + '&idx=' + idx + '&tmppath=' + tmppath; }; var aClient = new HttpClient(); aClient.get(uri, function(res) { @@ -56,15 +56,20 @@ if (response['db_hit'] != false){ var value = document.createTextNode(response['db_hit']); p.appendChild(value); + var h2 = document.createElement("h5"); + var t = document.createTextNode("Measurements:"); + h2.appendChild(t); + p.appendChild(h2); + for (var i=0; i