aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js')
-rw-r--r--web/js/nms-template.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/js/nms-template.js b/web/js/nms-template.js
index cad92b0..a3cbe92 100644
--- a/web/js/nms-template.js
+++ b/web/js/nms-template.js
@@ -15,7 +15,11 @@ nmsTemplate.test = function() {
dataType: "text",
success: function (indata, textStatus, jqXHR) {
var output = document.getElementById("template-output");
- output.value = indata;
+ output.value = jqXHR.responseText;
+ },
+ error: function (jqXHR, textStatus) {
+ var output = document.getElementById("template-output");
+ output.value = jqXHR.responseText;
}
});
}