From 84630bb9435ea543a922a255bc31883c7ac79491 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 1 Mar 2018 09:19:56 -0500 Subject: [PATCH] Updating for new dock new dock for starline --- views/front/apis/schedule.html | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/views/front/apis/schedule.html b/views/front/apis/schedule.html index 754b2b4..609bb8e 100644 --- a/views/front/apis/schedule.html +++ b/views/front/apis/schedule.html @@ -19,50 +19,85 @@ jQuery(document).ready(function(){ var dropdown_dockForm = $("#dockForm"); var dropdown_formDockId = $("#formDockId"); var dropdown_formSchedId = $("#formSchedId"); + + // Dropdowns + + // sched-1 var dropdown_dock1Sel = $('#dd-sched-1'); dropdown_dock1Sel.change(function(){ dropdown_formSchedId.val(1); dropdown_formDockId.val(dropdown_dock1Sel.val()); dropdown_dockForm.submit(); }); + + // sched-2 var dropdown_dock2Sel = $('#dd-sched-2'); dropdown_dock2Sel.change(function(){ dropdown_formSchedId.val(2); dropdown_formDockId.val(dropdown_dock2Sel.val()); dropdown_dockForm.submit(); }); + + // sched-3 var dropdown_dock3Sel = $('#dd-sched-3'); dropdown_dock3Sel.change(function(){ dropdown_formSchedId.val(3); dropdown_formDockId.val(dropdown_dock3Sel.val()); dropdown_dockForm.submit(); }); + + // sched-4 var dropdown_dock4Sel = $('#dd-sched-4'); dropdown_dock4Sel.change(function(){ dropdown_formSchedId.val(4); dropdown_formDockId.val(dropdown_dock4Sel.val()); dropdown_dockForm.submit(); }); + + // sched-5 + var dropdown_dock5Sel = $('#dd-sched-5'); + dropdown_dock5Sel.change(function(){ + dropdown_formSchedId.val(5); + dropdown_formDockId.val(dropdown_dock5Sel.val()); + dropdown_dockForm.submit(); + }); + + // Map links + // sched-1 var dropdown_mapLink1 = $('#dropdown-google-map-link1'); dropdown_mapLink1.click(function(){ window.location = '{$schedulePage}?mapLink=1'; return false; }); + + // sched-2 var dropdown_mapLink2 = $('#dropdown-google-map-link2'); dropdown_mapLink2.click(function(){ window.location = '{$schedulePage}?mapLink=2'; return false; }); + + // sched-3 var dropdown_mapLink3 = $('#dropdown-google-map-link3'); dropdown_mapLink3.click(function(){ window.location = '{$schedulePage}?mapLink=3'; return false; }); + + // sched-4 var dropdown_mapLink4 = $('#dropdown-google-map-link4'); dropdown_mapLink4.click(function(){ window.location = '{$schedulePage}?mapLink=4'; return false; }); + + // sched-5 + var dropdown_mapLink5 = $('#dropdown-google-map-link5'); + dropdown_mapLink5.click(function(){ + window.location = '{$schedulePage}?mapLink=5'; + return false; + }); + {/if} {if $offCanvas} // For the drop down docks schedules @@ -93,6 +128,12 @@ jQuery(document).ready(function(){ offcanvas_formDockId.val(offcanvas_dock4Sel.val()); offcanvas_dockForm.submit(); }); + var offcanvas_dock5Sel = $('#oc-sched-5'); + offcanvas_dock5Sel.change(function(){ + offcanvas_formSchedId.val(5); + offcanvas_formDockId.val(offcanvas_dock5Sel.val()); + offcanvas_dockForm.submit(); + }); var offcanvas_mapLink1 = $('#offcanvas-google-map-link1'); offcanvas_mapLink1.click(function(){ window.location = '{$schedulePage}?mapLink=1'; @@ -113,6 +154,11 @@ jQuery(document).ready(function(){ window.location = '{$schedulePage}?mapLink=4'; return false; }); + var offcanvas_mapLink5 = $('#offcanvas-google-map-link5'); + offcanvas_mapLink5.click(function(){ + window.location = '{$schedulePage}?mapLink=5'; + return false; + }); {/if} }); -- 2.17.1