From 93ed629d7407d4e8133e1300542234efeb9ab9fb Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 25 Jan 2016 16:54:10 -0500 Subject: [PATCH] added show on calendar icon click --- js/app.js | 8 ++++++-- js/custom/pageSetup.js | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/js/app.js b/js/app.js index e25c74f..b062f98 100644 --- a/js/app.js +++ b/js/app.js @@ -64,7 +64,6 @@ $(document).ready(function () { }, cacheDOM: function (){ this.$depart = $("#depart"); - this.$nights = $("#nights"); this.$departure = 0; }, bindEvents: function () { @@ -75,7 +74,12 @@ $(document).ready(function () { }); } }; - + $("#arriveCal").click(function () { + $("#arrive").datepicker("show"); + }); + $("#departCal").click(function () { + $("#depart").datepicker("show"); + }); var restab_module = { init: function (){ this.cacheDOM(); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 3af7c49..b4e9bee 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -55,7 +55,6 @@ $(document).ready(function () { }, cacheDOM: function (){ this.$depart = $("#depart"); - this.$nights = $("#nights"); this.$departure = 0; }, bindEvents: function () { @@ -66,7 +65,12 @@ $(document).ready(function () { }); } }; - + $("#arriveCal").click(function () { + $("#arrive").datepicker("show"); + }); + $("#departCal").click(function () { + $("#depart").datepicker("show"); + }); var restab_module = { init: function (){ this.cacheDOM(); -- 2.17.1