Commit b4875f4e authored by Jérome Perrin's avatar Jérome Perrin

fix Available / Required confusion in input widgets

parent 89fd7232
......@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Edit Available Capacity Spreadsheet</title>
<title>Edit Required Capacity Spreadsheet</title>
<script src="../<%= copy.rsvp.relative_dest %>" type="text/javascript"></script>
<script src="../<%= copy.renderjs.relative_dest %>" type="text/javascript"></script>
<script src="../<%= curl.jquery.relative_dest %>" type="text/javascript"></script>
......
......@@ -26,7 +26,7 @@
})
.push(function (body) {
var data = JSON.parse(body);
data.capacity_by_project_spreadsheet = JSON.parse(editor_data);
data.capacity_by_station_spreadsheet = JSON.parse(editor_data);
return gadget.aq_putAttachment({
"_id": gadget.props.jio_key,
"_attachment": "body.json",
......@@ -79,8 +79,9 @@
.push(function (result_list) {
return result_list[1].render(
JSON.stringify(JSON.parse(result_list[0])
.capacity_by_project_spreadsheet),
{minSpareRows: 1}
.capacity_by_station_spreadsheet),
{ minSpareCols: 1,
minSpareRows: 1 }
);
});
})
......
......@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Edit Required Capacity Spreadsheet</title>
<title>Edit Available Capacity Spreadsheet</title>
<script src="../<%= copy.rsvp.relative_dest %>" type="text/javascript"></script>
<script src="../<%= copy.renderjs.relative_dest %>" type="text/javascript"></script>
<script src="../<%= curl.jquery.relative_dest %>" type="text/javascript"></script>
......
......@@ -26,7 +26,7 @@
})
.push(function (body) {
var data = JSON.parse(body);
data.capacity_by_station_spreadsheet = JSON.parse(editor_data);
data.capacity_by_project_spreadsheet = JSON.parse(editor_data);
return gadget.aq_putAttachment({
"_id": gadget.props.jio_key,
"_attachment": "body.json",
......@@ -79,9 +79,8 @@
.push(function (result_list) {
return result_list[1].render(
JSON.stringify(JSON.parse(result_list[0])
.capacity_by_station_spreadsheet),
{ minSpareCols: 1,
minSpareRows: 1 }
.capacity_by_project_spreadsheet),
{minSpareRows: 1}
);
});
})
......
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