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

Samantha Li

Samantha Li

Pre-Award Administrator

Samantha Li joined IHMC in April 2025 as the pre-award administrator. In this role, she will work with research staff and IHMC administrative staff to help track grant management, contract compliance, project management and process improvement.

She is a graduate of the University of West Florida, where she earned a bachelor’s degree in finance and a master’s degree in business administration. She comes to IHMC from Navy Federal Credit Union, where she was analyst in the business lending department. She worked on the Lending Operations team, where her role included regulatory reporting, compliance management, project management, process improvement, and participation loan portfolio oversight.

In her free time, Samantha enjoys volunteering with her church, board and video games, puzzles, and spending time with her husband and their two cats.