From: Anthony Talarico Date: Thu, 21 Jan 2016 19:08:13 +0000 (-0500) Subject: tweaked conditional for date range restriction off canvas booking widget X-Git-Tag: v1.0.0^2~161 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=969190555197d8c60389b2b59a8d37a9435ebe5a;p=WP-Themes%2Fsaultstemarie.git tweaked conditional for date range restriction off canvas booking widget --- diff --git a/js/app.js b/js/app.js index 30e0c9b..f494bc9 100644 --- a/js/app.js +++ b/js/app.js @@ -176,7 +176,7 @@ $(document).ready(function () { currentDate2 = new Date(currentDate2); currentDate2 = new Date(currentDate2.getUTCFullYear(), currentDate2.getUTCMonth(),currentDate2.getUTCDate()); currentDate2.setDate(currentDate2.getDate()); - if($("#departOff").val() < requiredDate){ + if($("#departOff").val() <= requiredDate){ $("#departOff").val(minDays); } }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 4cb8e60..ac7082b 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -167,7 +167,7 @@ $(document).ready(function () { currentDate2 = new Date(currentDate2); currentDate2 = new Date(currentDate2.getUTCFullYear(), currentDate2.getUTCMonth(),currentDate2.getUTCDate()); currentDate2.setDate(currentDate2.getDate()); - if($("#departOff").val() < requiredDate){ + if($("#departOff").val() <= requiredDate){ $("#departOff").val(minDays); } });