From: Anthony Talarico Date: Tue, 10 Nov 2015 14:19:54 +0000 (-0500) Subject: Adjusted min date range for off canvas reservation form X-Git-Tag: v1.0.0^2~324 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=aa9f7a889fe980f29baab9bf9f08efdc80b92bcc;p=WP-Themes%2Fstaffords.git Adjusted min date range for off canvas reservation form --- diff --git a/js/app.js b/js/app.js index 7100bb2..102ab2d 100644 --- a/js/app.js +++ b/js/app.js @@ -58,7 +58,7 @@ $(document).ready(function () { $("#arriveOff").val(minDays); $("#departOff").val($('#departOff').attr("min")); } else { - d = currentDate.getDate() + 2; + d = currentDate.getDate() + 1; if (d <= 9) { d = '0' + d; } diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index a78c339..c3302f9 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -49,7 +49,7 @@ $(document).ready(function () { $("#arriveOff").val(minDays); $("#departOff").val($('#departOff').attr("min")); } else { - d = currentDate.getDate() + 2; + d = currentDate.getDate() + 1; if (d <= 9) { d = '0' + d; }