From a72d69dcb6599ef866527aa9e09889152c00ae0d Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 7 Mar 2019 10:04:30 -0500 Subject: [PATCH] Updating with js schedule url They change this all the time. --- js/app.js | 2 +- js/custom/pageSetup.js | 2 +- parts/schedules-dropdown.php | 8 ++++++++ style.css | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/js/app.js b/js/app.js index cdee5da..8c440ef 100644 --- a/js/app.js +++ b/js/app.js @@ -363,7 +363,7 @@ $(document).ready(function () { // redirect any clicks on the list items to the appropriate page $('.newdd-sched-option').on('click', function() { - location.href = "https://www.mackinacferry.com/schedules/?dockId=" + $(this).attr('value') + "&scheduleId=" + $(this).parent().attr('id').slice(-1) + "#edit-divy"; + location.href = scheduleUrl + "?dockId=" + $(this).attr('value') + "&scheduleId=" + $(this).parent().attr('id').slice(-1) + "#edit-divy"; }); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 10f454d..b4509e1 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -352,7 +352,7 @@ $(document).ready(function () { // redirect any clicks on the list items to the appropriate page $('.newdd-sched-option').on('click', function() { - location.href = "https://www.mackinacferry.com/schedules/?dockId=" + $(this).attr('value') + "&scheduleId=" + $(this).parent().attr('id').slice(-1) + "#edit-divy"; + location.href = scheduleUrl + "?dockId=" + $(this).attr('value') + "&scheduleId=" + $(this).parent().attr('id').slice(-1) + "#edit-divy"; }); }); diff --git a/parts/schedules-dropdown.php b/parts/schedules-dropdown.php index 16fb0ba..723b3ce 100644 --- a/parts/schedules-dropdown.php +++ b/parts/schedules-dropdown.php @@ -1,3 +1,11 @@ + +