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; ...@@ -364,6 +364,10 @@ border: 1px solid black;
width:95%; width:95%;
} }
#error{
text-align: left;
}
.ep { .ep {
position:absolute; position:absolute;
bottom:37%; bottom:37%;
......
...@@ -114,6 +114,8 @@ ...@@ -114,6 +114,8 @@
</div> </div>
</div> </div>
<pre id="error">
</pre>
</div> </div>
<!-- DEP --> <!-- DEP -->
......
...@@ -190,6 +190,7 @@ ...@@ -190,6 +190,7 @@
$("#reports").show(); $("#reports").show();
$("#result_zone").show(); $("#result_zone").show();
$('#result_list').empty(); $('#result_list').empty();
$('#error').empty();
if (data['success']) { if (data['success']) {
$("#json_result").val(JSON.stringify(data['success'], $("#json_result").val(JSON.stringify(data['success'],
undefined, " ")); undefined, " "));
...@@ -204,7 +205,7 @@ ...@@ -204,7 +205,7 @@
dream_instance.displayResult(0); dream_instance.displayResult(0);
} else { } else {
$("#reports").hide(); $("#reports").hide();
$("#json_result").show().effect('shake', 50).val(data['error']); $("#error").text(data["error"]).show().effect('shake', 50);
console.error(data['error']) 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