Changing text values of date input if date ranges are incorrect
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 2 Nov 2015 21:35:12 +0000 (16:35 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 2 Nov 2015 21:35:12 +0000 (16:35 -0500)
js/app.js
js/custom/pageSetup.js

index 065c7ae..c3d1e8b 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -84,7 +84,8 @@ $(document).ready(function () {
         }
         y = today.getFullYear();
         requiredDate = y + '-' + m + '-' + d;
-        alert(requiredDate);
+        $("#dateOff1").val("");
+        $("#dateOff1").val(requiredDate);
     });
    
     $("#date1").datepicker({
index 5763f07..b514f78 100644 (file)
@@ -75,7 +75,8 @@ $(document).ready(function () {
         }
         y = today.getFullYear();
         requiredDate = y + '-' + m + '-' + d;
-        alert(requiredDate);
+        $("#dateOff1").val("");
+        $("#dateOff1").val(requiredDate);
     });
    
     $("#date1").datepicker({