Replacing incorrectly entered date with default date is wrong date is picked in off...
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 2 Nov 2015 20:02:00 +0000 (15:02 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 2 Nov 2015 20:02:00 +0000 (15:02 -0500)
js/app.js
js/custom/pageSetup.js

index f45f690..b1689c1 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -80,7 +80,7 @@ $(document).ready(function () {
     $("#dateOff1").change(function () {
         currentDate = this.value;
         if (currentDate !== requiredDate) {
-            alert("boo hiss");
+            $("#dateOff1").val(requiredDate);
         }
         
         
index 62ef630..8938c86 100644 (file)
@@ -71,7 +71,7 @@ $(document).ready(function () {
     $("#dateOff1").change(function () {
         currentDate = this.value;
         if (currentDate !== requiredDate) {
-            alert("boo hiss");
+            $("#dateOff1").val(requiredDate);
         }