about summary refs log tree commit diff
path: root/uploader/templates
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/templates')
-rw-r--r--uploader/templates/phenotypes/add-phenotypes-raw-files.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/uploader/templates/phenotypes/add-phenotypes-raw-files.html b/uploader/templates/phenotypes/add-phenotypes-raw-files.html
index 3242549..0b0afcb 100644
--- a/uploader/templates/phenotypes/add-phenotypes-raw-files.html
+++ b/uploader/templates/phenotypes/add-phenotypes-raw-files.html
@@ -566,6 +566,13 @@
                       // TODO: Also trigger preview!
                       resumableDisplayFiles(
                           $("#resumable-phenotype-descriptions-selected-files"), files);
+                      files.forEach((file) => {
+                          readFirstNLines(
+                              file.file,
+                              10,
+                              [makePreviewUpdater(
+                                  $("#tbl-preview-pheno-desc"))])
+                      });
                   }),
               startUpload($("#resumable-phenotype-descriptions-browse-button"),
                           $("#resumable-phenotype-descriptions-retry-button"),