From: Anthony Talarico Date: Tue, 3 Nov 2015 15:42:07 +0000 (-0500) Subject: Corrected time zone error by adding UTC methods. this may be my last entry.godspeed. X-Git-Tag: v1.0.0^2~29 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=fd869cb3430a5d882ba66a2c04335d5c23affb7f;p=WP-Themes%2Fbpla.git Corrected time zone error by adding UTC methods. this may be my last entry.godspeed. --- diff --git a/js/app.js b/js/app.js index f8a3078..f9f3f47 100644 --- 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 ///////////////////////// diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 98829c2..59365c7 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -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 /////////////////////////