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