aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/phenotypes/add-phenotypes-raw-files.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-04-21 17:11:14 -0500
committerFrederick Muriuki Muriithi2025-04-21 17:11:14 -0500
commit5892a1825505803c51673fa6acec24f8fa49c5ee (patch)
tree9a9b88b8f4fa3a38bb5c79b45d10907ad23510a0 /uploader/templates/phenotypes/add-phenotypes-raw-files.html
parent57f2fc25c6ec53d19bdf5c00407c88cab1152b90 (diff)
downloadgn-uploader-main.tar.gz
Update the previews, in the case where resumables exist.HEADmain
Diffstat (limited to 'uploader/templates/phenotypes/add-phenotypes-raw-files.html')
-rw-r--r--uploader/templates/phenotypes/add-phenotypes-raw-files.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/uploader/templates/phenotypes/add-phenotypes-raw-files.html b/uploader/templates/phenotypes/add-phenotypes-raw-files.html
index 75fe622..57ab776 100644
--- a/uploader/templates/phenotypes/add-phenotypes-raw-files.html
+++ b/uploader/templates/phenotypes/add-phenotypes-raw-files.html
@@ -474,6 +474,17 @@
[makePreviewUpdater(preview_table)]);
}
});
+
+ if(typeof(resumables) !== "undefined") {
+ resumables.forEach((resumable) => {
+ if(resumable.files.length > 0) {
+ readFirstNLines(
+ resumable.files[0].file,
+ 10,
+ [makePreviewUpdater(resumable.preview_table)]);
+ }
+ });
+ }
};
[