From 9e718c15f6395ffe788d1c1784cf96ea2c7e97d2 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 2 Nov 2015 15:02:00 -0500 Subject: [PATCH] Replacing incorrectly entered date with default date is wrong date is picked in off canvas form --- js/app.js | 2 +- js/custom/pageSetup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.17.1