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 +}