Commit fc156253 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

embed spreadsheet column title list in javascript code.

parent b4b229e4
[
[
"Jobs",
"ID",
"Order Date",
"Due Date",
"Priority",
"Material",
"Sequence",
"Processing Times"
]
]
...@@ -113,7 +113,16 @@ ...@@ -113,7 +113,16 @@
priv.initSpreadSheet = function () { priv.initSpreadSheet = function () {
var spreadsheet = $('#spreadsheet_input'); var spreadsheet = $('#spreadsheet_input');
$.get('spreadsheet_template.json', function (data) { var data = [[
"Jobs",
"ID",
"Order Date",
"Due Date",
"Priority",
"Material",
"Sequence",
"Processing Times"
]];
spreadsheet.handsontable({ spreadsheet.handsontable({
data: data, data: data,
minSpareRows: 1, minSpareRows: 1,
...@@ -121,7 +130,6 @@ ...@@ -121,7 +130,6 @@
priv.onDataChange(); priv.onDataChange();
} }
}); });
});
}; };
priv.updateElementCoordinate = function (node_id, coordinate) { priv.updateElementCoordinate = function (node_id, coordinate) {
......
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