'); printWindow.document.close(); $('#acceptedOrNeedsReview').style.display = currentDisplayStyle; printWindow.focus(); printWindow.print(); printWindow.close(); } document.getElementById('tne_view_modal-submit-btn').onclick = () => { const submitBtn = document.getElementById("tne_view_modal-submit-btn"); const sig = document.getElementById("tne_view_modal-signatureField"); const date = document.getElementById("tne_view_modal-signedDateField"); const reason = document.querySelector("textarea[name='tne_view_modal-rejection_reason']"); const decision = document.querySelector("input[name='tne_view_modal-review_decision']:checked").value; console.log("Submit pressed: decision = " + decision); if (decision === "accept") { if (!sig.value.trim()) { alert("Please enter a signature."); sig.focus(); e.preventDefault(); return; } if (!date.value.trim()) { alert("Please select a date."); date.focus(); e.preventDefault(); return; } } else if (decision === "reject") { if (!reason.value.trim()) { alert("Please enter a reason for requesting a review."); reason.focus(); e.preventDefault(); return; } } console.log ("Need to submit the following:"); console.log ("file: " + submitBtn.dataset.file); console.log ("for: " + submitBtn.dataset.email); console.log ("signature: " + sig.value.trim()); console.log ("date: " + date.value.trim()); console.log ("reason: " + reason.value.trim()); // Need to post the ajax call to submit the decision.... $('#tne_view_modal-submit-btn').disabled = true; var data = new FormData(); data.append('action', 'tne_review_action'); data.append('nonce', nonce); data.append('user_email', submitBtn.dataset.email); data.append('tne_file', submitBtn.dataset.file); data.append('review_decision', decision); data.append('signature', sig.value.trim()); data.append('signed_date', date.value.trim()); data.append('review_reason', reason.value.trim()); fetch(ajaxUrl, { method: 'POST', credentials: 'same-origin', body: data // method: 'POST', // headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, // body: new URLSearchParams({ action: 'tne_email_requests', file, nonce }) }) .then(res => res.json()) .then(json => { if (!json.success) { alert('Error: ' + json.data); $('#tne_view_modal-submit-btn').disabled = false; } else { window.location.href = window.location.href; // window.location.reload(true); } }) .catch(function(err) { console.error(err); alert('Error posting your decision.'); $('#tne_view_modal-submit-btn').disabled = false; }); } const radios = document.querySelectorAll("input[name='tne_view_modal-review_decision']"); radios.forEach(radio => { radio.addEventListener("change", () => { const selected = document.querySelector("input[name='tne_view_modal-review_decision']:checked").value; document.getElementById("tne_view_modal-acceptBlock").style.display = selected === "accept" ? "block" : "none"; document.getElementById("tne_view_modal-rejectBlock").style.display = selected === "reject" ? "block" : "none"; }); }); // $('#tne-uv-table').ondblclick = e => { // const btn = e.target.closest('button.tne-uv-view-btn'); // if (btn) openFullModal(btn.dataset.file, btn.dataset.date); // }; })(); }); //# sourceURL=tne-uv-script-js-after

Thomas Konkel

Research Associate

Thomas joined IHMC as a Research Associate in August 2024 working with Dr. Matt Johnson, John Carff, and their team on Workbench Phase IV.

Thomas has a bachelor’s degree in game design from Full Sail University that reflects his lifelong passion for tinkering with electronics, hardware, and software. He was in the Scouts of America for many years, ending his scouting career as an Eagle Scout in 2022.

The innovative work IHMC is doing in virtual reality simulations drew his eye as a compelling place to utilize the real-world application of his interests and skills. In his free time, he enjoys playing video games and bowling, and notes that everything is always better with friends.