diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-11-14 17:31:11 +0100 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-11-14 17:31:11 +0100 |
commit | 64a9a76021f055c443594107bdb5f0e226ed2ddc (patch) | |
tree | 3e0c327c1a174ada9b3d163db3c7e06ca97f03b3 /web/js | |
parent | fef5855bd63d8c7033e2d2d48e2d478d3f632580 (diff) |
Templating GUI: Show errors too
Diffstat (limited to 'web/js')
-rw-r--r-- | web/js/nms-template.js | 6 |
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; } }); } |