From: Anthony Talarico Date: Mon, 25 Jan 2016 21:54:10 +0000 (-0500) Subject: added show on calendar icon click X-Git-Tag: v1.0.0^2~105 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=93ed629d7407d4e8133e1300542234efeb9ab9fb;p=WP-Themes%2Fsaultstemarie.git added show on calendar icon click --- 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();