From 863491fcde1e048ef944e52104f4e4e6ed16e5cd Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 10 Nov 2015 10:33:18 -0500 Subject: [PATCH] adjusting depart date auto population --- js/app.js | 2 +- js/custom/pageSetup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 5b01f3c..aad10ee 100644 --- a/js/app.js +++ b/js/app.js @@ -103,7 +103,7 @@ $(document).ready(function () { $("#nightsOff").val(departure - arrival); stay = 'stay_nights=' + (departure - arrival) + '&'; if ($("#departOff").val() < $('#departOff').attr("min")) { - // $("#dateOff2").val(requiredDate); + $("#departOff").val(requiredDate); } }); ///// end of canvas datepicker logic ^ ////////////////////////////////////////////// diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index ea79ca6..a51956a 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -94,7 +94,7 @@ $(document).ready(function () { $("#nightsOff").val(departure - arrival); stay = 'stay_nights=' + (departure - arrival) + '&'; if ($("#departOff").val() < $('#departOff').attr("min")) { - // $("#dateOff2").val(requiredDate); + $("#departOff").val(requiredDate); } }); ///// end of canvas datepicker logic ^ ////////////////////////////////////////////// -- 2.17.1