From aa37c10350ec8f68185da4ca80a57a23ce624d42 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 13 Aug 2018 16:52:29 -0400 Subject: [PATCH] testing min date and todays date placeholder value in the off canavs widget --- js/app.js | 13 +++++++------ js/custom/pageSetup.js | 13 +++++++------ parts/reservation-form-off-canvas.php | 4 ++-- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/js/app.js b/js/app.js index e3a4eb1..0456ef5 100644 --- a/js/app.js +++ b/js/app.js @@ -122,6 +122,7 @@ $(document).ready(function () { start = "arrival_date=" + y + '-' + m + '-' + d + '&'; } }); + $("#depart").datepicker({ dateFormat: 'mm/dd/yy', onSelect: function (date) { @@ -137,12 +138,12 @@ $(document).ready(function () { $("#departCal").click(function () { $("#depart").datepicker("show"); }); - $("#arriveCalOff").click(function () { - $("#arriveOff").datepicker("show"); - }); - $("#departCalOff").click(function () { - $("#departOff").datepicker("show"); - }); + // $("#arriveCalOff").click(function () { + // $("#arriveOff").datepicker("show"); + // }); + // $("#departCalOff").click(function () { + // $("#departOff").datepicker("show"); + // }); // // form submission logic // // off canvas resevation form submission /////////////////////////////////////////// $('.res-buttonOff').on('click', function () { diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 05b5543..d2fa9c2 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -113,6 +113,7 @@ $(document).ready(function () { start = "arrival_date=" + y + '-' + m + '-' + d + '&'; } }); + $("#depart").datepicker({ dateFormat: 'mm/dd/yy', onSelect: function (date) { @@ -128,12 +129,12 @@ $(document).ready(function () { $("#departCal").click(function () { $("#depart").datepicker("show"); }); - $("#arriveCalOff").click(function () { - $("#arriveOff").datepicker("show"); - }); - $("#departCalOff").click(function () { - $("#departOff").datepicker("show"); - }); + // $("#arriveCalOff").click(function () { + // $("#arriveOff").datepicker("show"); + // }); + // $("#departCalOff").click(function () { + // $("#departOff").datepicker("show"); + // }); // // form submission logic // // off canvas resevation form submission /////////////////////////////////////////// $('.res-buttonOff').on('click', function () { diff --git a/parts/reservation-form-off-canvas.php b/parts/reservation-form-off-canvas.php index 0a09aff..2088120 100644 --- a/parts/reservation-form-off-canvas.php +++ b/parts/reservation-form-off-canvas.php @@ -24,11 +24,11 @@ $oc_properties = array(
- +
- +
-- 2.17.1