diff options
Diffstat (limited to 'uploader/templates')
-rw-r--r-- | uploader/templates/phenotypes/add-phenotypes-raw-files.html | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/uploader/templates/phenotypes/add-phenotypes-raw-files.html b/uploader/templates/phenotypes/add-phenotypes-raw-files.html index 3c94a43..3eb042e 100644 --- a/uploader/templates/phenotypes/add-phenotypes-raw-files.html +++ b/uploader/templates/phenotypes/add-phenotypes-raw-files.html @@ -420,10 +420,11 @@ var handler_update_previews = (event) => { Object.entries(preview_tables_to_elements_map).forEach((mapentry) => { - var element = $(mapentry[1]); - if(element.length === 1) { - read_first_n_lines( - element[0], + var preview_table = $(mapentry[0]); + var file_input = $(mapentry[1]); + if(file_input.length === 1) { + readFirstNLines( + file_input[0].files[0], 10, [(data) => { update_preview( |