From: Anthony Talarico Date: Tue, 10 Nov 2015 15:33:18 +0000 (-0500) Subject: adjusting depart date auto population X-Git-Tag: v1.0.0^2~312 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=863491fcde1e048ef944e52104f4e4e6ed16e5cd;p=WP-Themes%2Fstaffords.git adjusting depart date auto population --- 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 ^ //////////////////////////////////////////////