adding another function for the datepicker in for departure input in the off canvas...
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 28 Jul 2016 18:22:57 +0000 (14:22 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 28 Jul 2016 18:22:57 +0000 (14:22 -0400)
js/app.js
js/custom/pageSetup.js

index cad5c21..09d439f 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -79,7 +79,12 @@ $(document).ready(function () {
           }
       });
     
-      $(off_canvas_departure).datepicker();
+      $(off_canvas_departure).datepicker({
+           beforeShow: function(input, inst)
+          {
+            inst.dpDiv.css({marginTop: -input.offsetHeight + 'px', marginLeft: '-20px'});
+          }
+      });
     
       $(off_canvas_arrival).change( function () {
         var min_date = $(this).datepicker('getDate', '+1d');
index 6c9eafb..ab93332 100644 (file)
@@ -70,7 +70,12 @@ $(document).ready(function () {
           }
       });
     
-      $(off_canvas_departure).datepicker();
+      $(off_canvas_departure).datepicker({
+           beforeShow: function(input, inst)
+          {
+            inst.dpDiv.css({marginTop: -input.offsetHeight + 'px', marginLeft: '-20px'});
+          }
+      });
     
       $(off_canvas_arrival).change( function () {
         var min_date = $(this).datepicker('getDate', '+1d');