From 43260249b60a639814d963653a23cb0e62c5e0cf Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 9 Nov 2015 11:08:12 -0500 Subject: [PATCH] Added jquery calendar functionality --- js/app.js | 7 +++++++ js/custom/pageSetup.js | 7 +++++++ parts/reservation-form.php | 4 ++-- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 9ba400c..f1d7c1d 100644 --- a/js/app.js +++ b/js/app.js @@ -40,4 +40,11 @@ $(document).ready(function () { }); //////////////////////////////////////////////////////// $("#arrive").datepicker(); + $("#depart").datepicker(); + $("#arriveCal").click(function () { + $("#arrive").datepicker("show"); + }); + $("#departCal").click(function () { + $("#depart").datepicker("show"); + }); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 6d3a2ee..23e8801 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -31,4 +31,11 @@ $(document).ready(function () { }); //////////////////////////////////////////////////////// $("#arrive").datepicker(); + $("#depart").datepicker(); + $("#arriveCal").click(function () { + $("#arrive").datepicker("show"); + }); + $("#departCal").click(function () { + $("#depart").datepicker("show"); + }); }); diff --git a/parts/reservation-form.php b/parts/reservation-form.php index ea65c89..0910170 100644 --- a/parts/reservation-form.php +++ b/parts/reservation-form.php @@ -7,10 +7,10 @@
- +
- +
-- 2.17.1