From 423962d72c623124b91be568b9ba2f879bd31cbd Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 2 Nov 2015 14:53:46 -0500 Subject: [PATCH] Added changes to date validation --- js/app.js | 3 +++ js/custom/pageSetup.js | 3 +++ 2 files changed, 6 insertions(+) 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"); + } }); -- 2.17.1