Skip to content
Snippets Groups Projects
Commit a2574629 authored by juanf's avatar juanf
Browse files

SSDM-344 : New Free Form Table structure (ongoing work).

SVN: 32329
parent 9f68afe3
No related branches found
No related tags found
No related merge requests found
......@@ -138,8 +138,14 @@ function FreeFormTableController(sample, isEnabled) {
this.importCSV = function(tableModel, $wrappedTable) {
var $fileInput = $("<input>", { "type" : "file"});
$fileInput.change(function() {
alert('works!');
$fileInput.change(function(event) {
var file = event.target.files[0];
var fileReader = new FileReader();
fileReader.onload = function(event) {
var contents = event.target.result;
var test = 0;
};
fileReader.readAsText(file);
});
$fileInput.click();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment