'); 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

Ben Smith

20260129_BenSmith_04

Grant Compliance

Ben Smith joined IHMC in 2025 as part of the support staff team. He is a graduate of the University of West Florida, where he earned both a bachelor’s and a master’s degree in interdisciplinary humanities. He earned a master of education in middle level mathematics at UWF and is pursuing a master’s in data science and modeling at UWF. Ben has 15 years of experience implementing action research, collecting behavioral data and teaching mathematics and statistics. He joined IHMC to apply his skills in data manipulation, statistical modeling, and communication skills to the Institute’s research on stress, resilience, and performance in extreme environments. Currently Ben is also supporting research activities, including conducting research in computational biology, multiOmics/mixOmics, with Jeremy McAdam.