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