added show on calendar icon click
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 25 Jan 2016 21:54:10 +0000 (16:54 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 25 Jan 2016 21:54:10 +0000 (16:54 -0500)
js/app.js
js/custom/pageSetup.js

index e25c74f..b062f98 100644 (file)
--- 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();
index 3af7c49..b4e9bee 100644 (file)
@@ -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();