Commit 074c85c8 authored by Jérome Perrin's avatar Jérome Perrin Committed by Ioannis Papagiannopoulos

hack: do not call getConfigurationDict so that we can display static version

parent cabc8f0f
...@@ -422,6 +422,9 @@ ...@@ -422,6 +422,9 @@
result: param_list[1] result: param_list[1]
}); });
}) })
.allowPublicAcquisition("getConfigurationDict", function () {
return this.props.configuration_dict;
})
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
// ready // ready
......
...@@ -363,12 +363,30 @@ ...@@ -363,12 +363,30 @@
applicationname: "dream" applicationname: "dream"
}); });
}).push(function() { }).push(function() {
// XXX Hardcoded relative URL g.props.configuration_dict = {
return jio_gadget.ajax({ "Dream-Configuration": {
url: "../../getConfigurationDict" _class: "Dream.Configuration",
}); gui: {
}).push(function(evt) { debug_json: 1,
g.props.configuration_dict = JSON.parse(evt.target.responseText); download_excel_spreadsheet: 0,
exit_stat: 1,
job_gantt: 0,
job_schedule_spreadsheet: 0,
queue_stat: 1,
shift_spreadsheet: 0,
station_utilisation_graph: 1,
wip_part_spreadsheet: 0,
wip_spreadsheet: 0
},
property_list: [ {
_class: "Dream.Property",
_default: 10,
id: "numberOfReplications",
name: "Number of replications",
type: "number"
} ]
}
};
}); });
}).declareMethod("render", function(options) { }).declareMethod("render", function(options) {
var gadget = this, back_kw = { var gadget = this, back_kw = {
......
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