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

Niranjan Suri

Niranjan Suri

Research Areas

Associate Director and Senior Research Scientist

Niranjan Suri is a Senior Research Scientist and Associate Director at the Florida Institute for Human and Machine Cognition (IHMC), the Division Associate for Research in the Military information Sciences Division at the US Army Research Laboratory, and a Director of Research Professor in the Intelligent Systems and Robotics Program at the University of West Florida. He received his Ph.D. in Computer Science from Lancaster University, England, and his M.Sc. and B.Sc. in Computer Science from the University of West Florida.

Niranjan’s long term research activities focus on networking, communications, distributed systems, information management, interoperability, Internet of Things (IoT), and the application of Machine Learning to all of those domains. One of his focus areas has been on the topic of Value of Information (VoI) and its application to military C2 systems, both to reduce operator overload and to alleviate communications bottlenecks. Another recent focus area is on Collaborative Autonomy for multiple unmanned systems in multi-domain operations.

Niranjan is a Member-at-Large on the NATO Information Systems Technology Panel, where he co-chairs the Communications Focus Group. He is also currently the chair of two NATO Research Task Groups – IST-223 on Exploiting IoT and Other Non-traditional Information Sources for Command and Control and Decision Making and IST-243 on Next Generation Communication Networks. He remains involved in other RTG activities on Edge Computing and Tactical Data Meshes. In the past, he also co-chaired groups on Military Applications of IoT, Tactical Group Communication and Information Dissemination, Federated Interoperability of Military C2 Systems and IoT, and on Adaptive Networking at the Tactical Edge.