changing min nights stay calculation
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 10 Nov 2015 14:33:21 +0000 (09:33 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 10 Nov 2015 14:33:21 +0000 (09:33 -0500)
js/app.js
js/custom/pageSetup.js

index a531a6a..01fd385 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -82,7 +82,7 @@ $(document).ready(function () {
         currentDate = new Date(currentDate);
         currentDate = new Date(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate());
         currentDate.setDate(currentDate.getDate());
-        d = currentDate.getDate() + 2;
+        d = currentDate.getDate() + 1;
         if (d <= 9) {
             d = '0' + d;
         }
index f4c83b3..407977b 100644 (file)
@@ -73,7 +73,7 @@ $(document).ready(function () {
         currentDate = new Date(currentDate);
         currentDate = new Date(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate());
         currentDate.setDate(currentDate.getDate());
-        d = currentDate.getDate() + 2;
+        d = currentDate.getDate() + 1;
         if (d <= 9) {
             d = '0' + d;
         }