Commit 422e63f1 authored by Jérome Perrin's avatar Jérome Perrin

repair display of errors in gui

parent 94cdf7f7
......@@ -364,6 +364,10 @@ border: 1px solid black;
width:95%;
}
#error{
text-align: left;
}
.ep {
position:absolute;
bottom:37%;
......
......@@ -114,6 +114,8 @@
</div>
</div>
<pre id="error">
</pre>
</div>
<!-- DEP -->
......
......@@ -190,6 +190,7 @@
$("#reports").show();
$("#result_zone").show();
$('#result_list').empty();
$('#error').empty();
if (data['success']) {
$("#json_result").val(JSON.stringify(data['success'],
undefined, " "));
......@@ -204,7 +205,7 @@
dream_instance.displayResult(0);
} else {
$("#reports").hide();
$("#json_result").show().effect('shake', 50).val(data['error']);
$("#error").text(data["error"]).show().effect('shake', 50);
console.error(data['error'])
}
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment