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