From: Anthony Talarico Date: Mon, 2 Nov 2015 20:02:00 +0000 (-0500) Subject: Replacing incorrectly entered date with default date is wrong date is picked in off... X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=9e718c15f6395ffe788d1c1784cf96ea2c7e97d2;p=WP-Themes%2Fglmthemes%2Fbpla-theme.git Replacing incorrectly entered date with default date is wrong date is picked in off canvas form --- diff --git a/js/app.js b/js/app.js index f45f690..b1689c1 100644 --- 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); } diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 62ef630..8938c86 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -71,7 +71,7 @@ $(document).ready(function () { $("#dateOff1").change(function () { currentDate = this.value; if (currentDate !== requiredDate) { - alert("boo hiss"); + $("#dateOff1").val(requiredDate); }