html5 datepicker does not have full cross browser support, tested working in chrome...
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 2 Nov 2015 18:11:07 +0000 (13:11 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 2 Nov 2015 18:11:07 +0000 (13:11 -0500)
js/app.js
js/custom/pageSetup.js
parts/off-canvas-menu.php

index a2770d2..8850275 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -77,11 +77,7 @@ $(document).ready(function () {
     y = today.getFullYear();
     requiredDate = y + '-' + m + '-' + d;
    // $("#dateOff1").attr("min", requiredDate);
-    
-    $("#dateOff1").change(function () {
-                          
-    });
-    $("dateOff1").validate();
    // $("#date1").val(requiredDate);
     $("#date1").datepicker({
         minDate: 2,
index c61265d..ec174be 100644 (file)
@@ -68,11 +68,7 @@ $(document).ready(function () {
     y = today.getFullYear();
     requiredDate = y + '-' + m + '-' + d;
    // $("#dateOff1").attr("min", requiredDate);
-    
-    $("#dateOff1").change(function () {
-                          
-    });
-    $("dateOff1").validate();
    // $("#date1").val(requiredDate);
     $("#date1").datepicker({
         minDate: 2,
index db236c6..803fd70 100644 (file)
@@ -24,7 +24,7 @@
                 <input type="text" placeholder="Search by property" name="s">
             </div>
             <div class="small-6 res-date columns">
-                <input id="dateOff1" type="date" min="2015-11-06" placeholder="Arrive" name="ArrivalDate" required="required">
+                <input id="dateOff1" type="date" min="<?php echo $requiredDate ?>" 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">