From f1ebcb29694e4622b7d8c0c37efc676af29d8d4f Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Mon, 14 Nov 2016 20:50:28 +0100 Subject: Tweak template UI slightly --- web/index.html | 13 +++++-------- web/js/nms-template.js | 4 +--- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/web/index.html b/web/index.html index 38ba6d5..a9e4fd3 100644 --- a/web/index.html +++ b/web/index.html @@ -137,7 +137,8 @@
-
+
+
@@ -152,14 +153,10 @@
- -
-
- - -
-
+
+ +
diff --git a/web/js/nms-template.js b/web/js/nms-template.js index 68e0286..c34ef34 100644 --- a/web/js/nms-template.js +++ b/web/js/nms-template.js @@ -1,7 +1,6 @@ "use strict"; var nmsTemplate = nmsTemplate || { - } nmsTemplate.test = function() { @@ -26,8 +25,6 @@ nmsTemplate.test = function() { } nmsTemplate.fromFile = function(template) { - var input = document.getElementById("template-input"); - var output = document.getElementById("template-output"); $.ajax({ type: "GET", url: "/templates/" + template, @@ -38,4 +35,5 @@ nmsTemplate.fromFile = function(template) { output.value = indata; } }); + nmsTemplate.test(); } -- cgit v1.2.3