From 037262e7d153a82192a4aca24d5164554f1e824a Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 10 Nov 2015 11:50:31 -0500 Subject: [PATCH] added min date of today for top bar reservation dropdown --- js/app.js | 1 + js/custom/pageSetup.js | 1 + 2 files changed, 2 insertions(+) diff --git a/js/app.js b/js/app.js index 8bd3070..7ee5565 100644 --- a/js/app.js +++ b/js/app.js @@ -119,6 +119,7 @@ $(document).ready(function () { /// top bar reservation form dropdown logic //////////////////////////// $("#arrive").datepicker({ + minDate: 0, onSelect: function (date) { $("#arrive").datepicker({dateFormat: 'mm/dd/yy'}).val(); arrival = $("#arrive").datepicker('getDate'); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 599353e..23da7b3 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -110,6 +110,7 @@ $(document).ready(function () { /// top bar reservation form dropdown logic //////////////////////////// $("#arrive").datepicker({ + minDate: 0, onSelect: function (date) { $("#arrive").datepicker({dateFormat: 'mm/dd/yy'}).val(); arrival = $("#arrive").datepicker('getDate'); -- 2.17.1