From 1ad8044312088c22d4fea71ba36a5fea0b253706 Mon Sep 17 00:00:00 2001 From: Joshua Orvis Date: Wed, 21 Aug 2024 14:03:38 -0500 Subject: [PATCH] Progress commit, switching machines --- www/js/upload_dataset.js | 13 +++++++++- www/upload_dataset.html | 54 ++++++++++++++++++++++++++++++++++++++-- 2 files changed, 64 insertions(+), 3 deletions(-) diff --git a/www/js/upload_dataset.js b/www/js/upload_dataset.js index 957443dc..90c4265c 100644 --- a/www/js/upload_dataset.js +++ b/www/js/upload_dataset.js @@ -51,6 +51,17 @@ window.onload=function() { }); }); + // Add click listeners for submissions-in-progress-table-tbody rows, even if they don't exist yet + document.addEventListener('click', (event) => { + if (event.target.classList.contains('submission-history-row')) { + const share_id = event.target.dataset.shareId; + const step = event.target.dataset.step; + + // Do we want to dynamically load the next step or page refresh for it? + // If dynamic we have to reset all the forms. + } + }); + document.getElementById('metadata-form-submit').addEventListener('click', (event) => { event.preventDefault(); let errored_fields = validateMetadataForm(); @@ -309,7 +320,7 @@ const storeMetadata = async () => { upload_step_marker.classList.add('is-light'); upload_step_icon.firstElementChild.classList.add('mdi-wrench'); - document.getElementById('step-upload-metadata-c').classList.add('is-hidden'); + document.getElementById('step-enter-metadata-c').classList.add('is-hidden'); document.getElementById('step-upload-dataset-c').classList.remove('is-hidden'); // Scroll to the top of the page diff --git a/www/upload_dataset.html b/www/upload_dataset.html index 7d5f1bb9..5874f19e 100644 --- a/www/upload_dataset.html +++ b/www/upload_dataset.html @@ -88,7 +88,7 @@

Submissions in progress