From: Anthony Talarico Date: Mon, 2 Nov 2015 19:53:46 +0000 (-0500) Subject: Added changes to date validation X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=423962d72c623124b91be568b9ba2f879bd31cbd;p=WP-Themes%2Fglmthemes%2Fbpla-theme.git Added changes to date validation --- diff --git a/js/app.js b/js/app.js index e166187..df94e2b 100644 --- a/js/app.js +++ b/js/app.js @@ -80,6 +80,9 @@ $(document).ready(function () { $("#dateOff1").change(function () { currentDate = this.value; $("#dateOff1").val(currentDate); + if (currentDate !== requiredDate) { + alert("boo hiss"); + } }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index d36fa92..ec0d84f 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -71,6 +71,9 @@ $(document).ready(function () { $("#dateOff1").change(function () { currentDate = this.value; $("#dateOff1").val(currentDate); + if (currentDate !== requiredDate) { + alert("boo hiss"); + } });