From 969190555197d8c60389b2b59a8d37a9435ebe5a Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 21 Jan 2016 14:08:13 -0500 Subject: [PATCH] tweaked conditional for date range restriction off canvas booking widget --- 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 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); } }); -- 2.17.1