From 03c7153565884b668851171b2c06b39637e45146 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Wed, 1 Jan 2025 05:55:09 +0000 Subject: [PATCH] update openMap method for itinerary report --- assets/js/app/itinerary.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/assets/js/app/itinerary.js b/assets/js/app/itinerary.js index a73ca72..c5eb8f4 100644 --- a/assets/js/app/itinerary.js +++ b/assets/js/app/itinerary.js @@ -45,12 +45,9 @@ export function addLocationToItinerary() { } export function openMap() { - if (!document.getElementById('case-filter').value || !document.getElementById('date-filter').value) { - return false; - } - document.getElementById('caseId').value = document.getElementById('case-filter').value; - document.getElementById('caseDate').value = document.getElementById('date-filter').value; + document.getElementById('startDate').value = document.getElementById('start-date-filter').value; + document.getElementById('endDate').value = document.getElementById('end-date-filter').value; document.getElementById('map-form').submit(); -} \ No newline at end of file +}