From 3334d8a322b444ececc69cdb5a0b4b749fd4c8c6 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 2 Nov 2015 11:03:50 -0500 Subject: [PATCH] Removing jquery datepicker from off canvas menu, using html5 date input --- js/app.js | 8 ++++---- js/custom/pageSetup.js | 8 ++++---- parts/off-canvas-menu.php | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/js/app.js b/js/app.js index 9b33f6d..f7c2afc 100644 --- a/js/app.js +++ b/js/app.js @@ -66,12 +66,12 @@ $(document).ready(function () { $("#cal2").click(function () { $("#date2").datepicker("show"); }); - $("#offCal1").click(function () { + /* $("#offCal1").click(function () { $("#dateOff1").datepicker("show"); }); $("#offCal2").click(function () { $("#dateOff2").datepicker("show"); - }); + });*/ /* today = new Date(); minDays = 2; today.setDate(today.getDate() + minDays); @@ -106,7 +106,7 @@ $(document).ready(function () { }); - $("#dateOff1").datepicker({ + /* $("#dateOff1").datepicker({ minDate: 2, onSelect: function (date) { $("#dateOff1").datepicker({dateFormat: 'yy-mm-dd'}).val(); @@ -122,7 +122,7 @@ $(document).ready(function () { departure = $("#dateOff2").val(); } - }); + }); */ }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 2dad9bb..f599b62 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -57,12 +57,12 @@ $(document).ready(function () { $("#cal2").click(function () { $("#date2").datepicker("show"); }); - $("#offCal1").click(function () { + /* $("#offCal1").click(function () { $("#dateOff1").datepicker("show"); }); $("#offCal2").click(function () { $("#dateOff2").datepicker("show"); - }); + });*/ /* today = new Date(); minDays = 2; today.setDate(today.getDate() + minDays); @@ -97,7 +97,7 @@ $(document).ready(function () { }); - $("#dateOff1").datepicker({ + /* $("#dateOff1").datepicker({ minDate: 2, onSelect: function (date) { $("#dateOff1").datepicker({dateFormat: 'yy-mm-dd'}).val(); @@ -113,7 +113,7 @@ $(document).ready(function () { departure = $("#dateOff2").val(); } - }); + }); */ }); diff --git a/parts/off-canvas-menu.php b/parts/off-canvas-menu.php index 3bd40a0..cdc0a2c 100644 --- a/parts/off-canvas-menu.php +++ b/parts/off-canvas-menu.php @@ -22,11 +22,11 @@
- +
- +
-- 2.17.1