Removing jquery datepicker from off canvas menu, using html5 date input
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 2 Nov 2015 16:03:50 +0000 (11:03 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 2 Nov 2015 16:03:50 +0000 (11:03 -0500)
js/app.js
js/custom/pageSetup.js
parts/off-canvas-menu.php

index 9b33f6d..f7c2afc 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -66,12 +66,12 @@ $(document).ready(function () {
     $("#cal2").click(function () {
         $("#date2").datepicker("show");
     });
-    $("#offCal1").click(function () {
+   /* $("#offCal1").click(function () {
         $("#dateOff1").datepicker("show");
     });
     $("#offCal2").click(function () {
         $("#dateOff2").datepicker("show");
-    });
+    });*/
    /* today = new Date();
     minDays = 2;
     today.setDate(today.getDate() + minDays);
@@ -106,7 +106,7 @@ $(document).ready(function () {
     
 
     });
-    $("#dateOff1").datepicker({
+   /* $("#dateOff1").datepicker({
         minDate: 2,
         onSelect: function (date) {
             $("#dateOff1").datepicker({dateFormat: 'yy-mm-dd'}).val();
@@ -122,7 +122,7 @@ $(document).ready(function () {
             departure = $("#dateOff2").val();
           
         }
-    });
+    }); */
 
 
 });
index 2dad9bb..f599b62 100644 (file)
@@ -57,12 +57,12 @@ $(document).ready(function () {
     $("#cal2").click(function () {
         $("#date2").datepicker("show");
     });
-    $("#offCal1").click(function () {
+   /* $("#offCal1").click(function () {
         $("#dateOff1").datepicker("show");
     });
     $("#offCal2").click(function () {
         $("#dateOff2").datepicker("show");
-    });
+    });*/
    /* today = new Date();
     minDays = 2;
     today.setDate(today.getDate() + minDays);
@@ -97,7 +97,7 @@ $(document).ready(function () {
     
 
     });
-    $("#dateOff1").datepicker({
+   /* $("#dateOff1").datepicker({
         minDate: 2,
         onSelect: function (date) {
             $("#dateOff1").datepicker({dateFormat: 'yy-mm-dd'}).val();
@@ -113,7 +113,7 @@ $(document).ready(function () {
             departure = $("#dateOff2").val();
           
         }
-    });
+    }); */
 
 
 });
index 3bd40a0..cdc0a2c 100644 (file)
                 <input type="text" placeholder="Search by property" name="s">
             </div>
             <div class="small-6 res-date columns">
-                <input id="dateOff1" type="text" placeholder="Arrive" name="ArrivalDate" required="required">
+                <input id="dateOff1" type="date" placeholder="Arrive" name="ArrivalDate" required="required">
                 <img id = "offCal1" src="<?php echo get_template_directory_uri(); ?>/assets/calendar-icon.jpg">
             </div>
             <div class="small-6 res-date columns">
-                <input id="dateOff2" type="text" placeholder="Depart" name="DepartureDate" required="required"><img id ="offCal2" src="<?php echo get_template_directory_uri(); ?>/assets/calendar-icon.jpg">
+                <input id="dateOff2" type="date" placeholder="Depart" name="DepartureDate" required="required"><img id ="offCal2" src="<?php echo get_template_directory_uri(); ?>/assets/calendar-icon.jpg">
             </div>
             <div class="small-6 guest columns">
                 <!--<input id="offGuests" type="text" placeholder="Guests" > -->