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