From: Anthony Talarico Date: Fri, 30 Oct 2015 18:28:58 +0000 (-0400) Subject: Changed time function in php for reservation form in off canvas to remove jquery... X-Git-Tag: v1.0.0^2~63 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=20f2add4b39517ff0653b07ddbed8385f02d9b30;p=WP-Themes%2Fbpla.git Changed time function in php for reservation form in off canvas to remove jquery hacks --- diff --git a/header.php b/header.php index c4bd67e..1c20d77 100644 --- a/header.php +++ b/header.php @@ -57,11 +57,11 @@
- + ...
- + ...
diff --git a/js/app.js b/js/app.js index 9819b35..9b33f6d 100644 --- a/js/app.js +++ b/js/app.js @@ -72,14 +72,14 @@ $(document).ready(function () { $("#offCal2").click(function () { $("#dateOff2").datepicker("show"); }); - today = new Date(); + /* today = new Date(); minDays = 2; today.setDate(today.getDate() + minDays); d = today.getDate(); m = today.getMonth() + 1; y = today.getFullYear(); - requiredDate = m + '/' + d + '/' + y; - $("#date1").val(requiredDate); + requiredDate = m + '/' + d + '/' + y; + $("#date1").val(requiredDate); */ $("#date1").datepicker({ minDate: 2, onSelect: function (date) { @@ -90,17 +90,16 @@ $(document).ready(function () { arrival = $("#date1").val(); } }); - d = today.getDate() + 2; + /* d = today.getDate() + 2; m = today.getMonth() + 1; y = today.getFullYear(); - requiredDate = m + '/' + d + '/' + y; - $("#date2").val(requiredDate); + requiredDate = m + '/' + d + '/' + y; + $("#date2").val(requiredDate); */ $("#date2").datepicker({ onSelect: function (date) { departure = $("#date2").val(); } }); - $(".page_item.page-item-150").find('a[href]').attr("href", "#").attr('onclick', "document.form.submit();"); // off canvas menu values ///////////////////////// $('#offGuests').blur(function () { guests = $('#offGuests').val(); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index a8adbd6..2dad9bb 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -63,14 +63,14 @@ $(document).ready(function () { $("#offCal2").click(function () { $("#dateOff2").datepicker("show"); }); - today = new Date(); + /* today = new Date(); minDays = 2; today.setDate(today.getDate() + minDays); d = today.getDate(); m = today.getMonth() + 1; y = today.getFullYear(); - requiredDate = m + '/' + d + '/' + y; - $("#date1").val(requiredDate); + requiredDate = m + '/' + d + '/' + y; + $("#date1").val(requiredDate); */ $("#date1").datepicker({ minDate: 2, onSelect: function (date) { @@ -81,17 +81,16 @@ $(document).ready(function () { arrival = $("#date1").val(); } }); - d = today.getDate() + 2; + /* d = today.getDate() + 2; m = today.getMonth() + 1; y = today.getFullYear(); - requiredDate = m + '/' + d + '/' + y; - $("#date2").val(requiredDate); + requiredDate = m + '/' + d + '/' + y; + $("#date2").val(requiredDate); */ $("#date2").datepicker({ onSelect: function (date) { departure = $("#date2").val(); } }); - $(".page_item.page-item-150").find('a[href]').attr("href", "#").attr('onclick', "document.form.submit();"); // off canvas menu values ///////////////////////// $('#offGuests').blur(function () { guests = $('#offGuests').val(); diff --git a/page-150.php b/page-150.php index 3b60766..84185d7 100644 --- a/page-150.php +++ b/page-150.php @@ -19,8 +19,16 @@

- - + + + +