Commit 1e3a9e19 authored by Jérome Perrin's avatar Jérome Perrin

fixup! make UI component really optional

Multiple results where not properly displayed. Also make debug_json work as well
parent 3dd5e51b
......@@ -316,7 +316,7 @@ path, ._jsPlumb_endpoint {
visibility: hidden;
}
#debug textarea {
#debug_json textarea {
width:100%;
}
......
......@@ -74,7 +74,7 @@
<div id="job_schedule_spreadsheet"></div>
<div id="job_gantt"></div>
<div id="debug">
<div id="debug_json" style="display: none">
<div class="six columns alpha">
<div>Input</div>
<textarea rows="20" cols="47" id="json_output"></textarea>
......
......@@ -269,8 +269,7 @@
$($('li.result')[idx]).addClass('active');
var result = JSON.parse($("#json_result").val())[idx]['result'];
if (configuration['Dream-Configuration'].gui.debug_json){
// TODO: does not work
$("#result_zone").show();
$("#debug_json").show();
}
if (configuration['Dream-Configuration'].gui.station_utilisation_graph){
$("#graph_zone").show();
......
......@@ -75,6 +75,9 @@
if (configuration['Dream-Configuration'].gui.wip_spreadsheet){
$("#wip_spreadsheet").show();
}
if (configuration['Dream-Configuration'].gui.debug_json){
$("#debug_json").show();
}
try {
// spreadsheets
......@@ -152,6 +155,7 @@
function (data) {
$("#loading_spinner").hide();
$("#run_simulation").button('enable');
$("#result_zone").show();
$('#result_list').empty();
if (data['success']) {
$("#json_result").val(JSON.stringify(data['success'],
......
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