From: Anthony Talarico Date: Mon, 9 Nov 2015 18:28:35 +0000 (-0500) Subject: added classes to datepickers so offcanvas share the event delegation X-Git-Tag: v1.0.0^2~333 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=341bde3dfa2de19fe8070a646b0e759dc8358113;p=WP-Themes%2Fstaffords.git added classes to datepickers so offcanvas share the event delegation --- diff --git a/js/app.js b/js/app.js index f1d7c1d..21b1391 100644 --- a/js/app.js +++ b/js/app.js @@ -39,12 +39,12 @@ $(document).ready(function () { }); //////////////////////////////////////////////////////// - $("#arrive").datepicker(); - $("#depart").datepicker(); - $("#arriveCal").click(function () { - $("#arrive").datepicker("show"); + $(".arrive").datepicker(); + $(".depart").datepicker(); + $(".arriveCal").click(function () { + $(".arrive").datepicker("show"); }); - $("#departCal").click(function () { - $("#depart").datepicker("show"); + $(".departCal").click(function () { + $(".depart").datepicker("show"); }); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 23e8801..9a3ba1e 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -30,12 +30,12 @@ $(document).ready(function () { }); //////////////////////////////////////////////////////// - $("#arrive").datepicker(); - $("#depart").datepicker(); - $("#arriveCal").click(function () { - $("#arrive").datepicker("show"); + $(".arrive").datepicker(); + $(".depart").datepicker(); + $(".arriveCal").click(function () { + $(".arrive").datepicker("show"); }); - $("#departCal").click(function () { - $("#depart").datepicker("show"); + $(".departCal").click(function () { + $(".depart").datepicker("show"); }); }); diff --git a/parts/reservation-form-off-canvas.php b/parts/reservation-form-off-canvas.php index 1b667c7..9d0e932 100644 --- a/parts/reservation-form-off-canvas.php +++ b/parts/reservation-form-off-canvas.php @@ -9,19 +9,42 @@
- +
- +
- +
- +