Commit 5cc2cfc6 authored by Jérome Perrin's avatar Jérome Perrin

rename wip to spreadsheet because this spreadsheet will likely be used for other things as well

Also pass the the spreadsheet along the graph to the backend
parent b95cfed6
......@@ -260,7 +260,6 @@
manpy_dict['nodes'] = nodes;
manpy_dict['edges'] = data['edges'];
manpy_dict['general'] = data['general'];
manpy_dict['wip'] = $.sheet.instance[0].exportSheet.json();
return manpy_dict;
};
......@@ -285,7 +284,8 @@
$.ajax(
'/runSimulation', {
data: JSON.stringify({
json: model
json: model,
spreadsheet: $.sheet.instance[0].exportSheet.json()
}),
contentType: 'application/json',
type: 'POST',
......
......@@ -280,7 +280,7 @@
}, function (err, response) {});
jio.put({
_id: "dream_demo.wip",
_id: "dream_demo.spreadsheet",
data: JSON.stringify($.sheet.instance[0].exportSheet.json(), undefined, " ")
}, function (err, response) {});
......@@ -406,7 +406,7 @@
$("#graph_zone").hide();
// WIP sheet
// spreadsheet
var default_config = {
id: "jquerysheet-div",
style: '',
......@@ -431,9 +431,9 @@
var sheet = $('.jQuerySheet').sheet(default_config);
// reread wip from jio
// reread spreadsheet from jio
jio.get({
_id: "dream_demo.wip"
_id: "dream_demo.spreadsheet"
}, function (err, response) {
if (response !== undefined && response.data !== undefined) {
var config = $.extend({
......
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