Commit 984254d3 authored by Jérome Perrin's avatar Jérome Perrin

fixup! GUI: save solution id when saving workplan for comparison

parent a986d829
......@@ -56,11 +56,11 @@
var object_data = JSON.parse(data);
// XXX option for that
object_data.input.reference_spreadsheet = gadget.props.new_spreadsheet;
object_data.input.reference_solution = gadget.props.options.id;
object_data.input.reference_solution = parseInt(gadget.props.options.result);
return gadget.aq_putAttachment({
"_id": gadget.props.jio_key,
"_attachment": "body.json",
"_data": JSON.stringify(object_data)
"_data": JSON.stringify(object_data, null, " ")
}).push(function (){
// XXX quick way to get a popup message
$.mobile.loading( 'show', { text: "Current schedule set as reference", textVisible: true, textonly: true });
......
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