Corrected time zone error by adding UTC methods. this may be my last entry.godspeed.
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 3 Nov 2015 15:42:07 +0000 (10:42 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 3 Nov 2015 15:42:07 +0000 (10:42 -0500)
js/app.js
js/custom/pageSetup.js

index f8a3078..f9f3f47 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -58,8 +58,6 @@ $(document).ready(function () {
     // save guest input
     $('#guests').blur(function () {
         guests = $('#guests').val();
-
-
     });
     // date picker images for each calendar
     $("#cal1").click(function () {
@@ -68,6 +66,8 @@ $(document).ready(function () {
     $("#cal2").click(function () {
         $("#date2").datepicker("show");
     });
+    $("#dateOff1").val("Arrive");
+    $("#dateOff2").val("Depart");
     // restrict arrival date //////////////////////////////////////////////
     $(document).on('change', '#dateOff1', function () {
         currentDate = $("#dateOff1").val();
@@ -134,16 +134,9 @@ $(document).ready(function () {
             arrival = $("#date1").val();
         }
     });
-    // restrict for min of 2 days after selected days [max]
-    d = today.getDate() + 2;
-    m = today.getMonth() + 1;
-    y = today.getFullYear();
-    requiredDate = y + '-' + m + '-' + d;
-    
     //$("#date2").val(requiredDate);
     $("#date2").datepicker({
         onSelect: function (date) {
-           // departure = $("#date2").val();
         }
     });
     // off canvas menu values /////////////////////////
index 98829c2..59365c7 100644 (file)
@@ -49,8 +49,6 @@ $(document).ready(function () {
     // save guest input
     $('#guests').blur(function () {
         guests = $('#guests').val();
-
-
     });
     // date picker images for each calendar
     $("#cal1").click(function () {
@@ -59,6 +57,8 @@ $(document).ready(function () {
     $("#cal2").click(function () {
         $("#date2").datepicker("show");
     });
+    $("#dateOff1").val("Arrive");
+    $("#dateOff2").val("Depart");
     // restrict arrival date //////////////////////////////////////////////
     $(document).on('change', '#dateOff1', function () {
         currentDate = $("#dateOff1").val();
@@ -125,16 +125,9 @@ $(document).ready(function () {
             arrival = $("#date1").val();
         }
     });
-    // restrict for min of 2 days after selected days [max]
-    d = today.getDate() + 2;
-    m = today.getMonth() + 1;
-    y = today.getFullYear();
-    requiredDate = y + '-' + m + '-' + d;
-    
     //$("#date2").val(requiredDate);
     $("#date2").datepicker({
         onSelect: function (date) {
-           // departure = $("#date2").val();
         }
     });
     // off canvas menu values /////////////////////////