From 7a34c0b8c536920458efa338fa74ff4c2be16a0e Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 22 Mar 2019 21:47:08 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 7 +++---- ayanova/src/api/gzvalidate.js | 26 -------------------------- 2 files changed, 3 insertions(+), 30 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index ef488ae7..df5345c1 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -14,14 +14,13 @@ TODO CLIENT STUFF TODO NEXT -RETEST all validation now that the rules have been updated to the new format -Also, is there anything pulled into the validate code directly that is already available off the "v" variable? -- localization etc + GZ VALIDATE - Add rule isNumeric - Right now "count" is using the required rule which works but you can type anything in there including letters and shit - + - Is there anything pulled into the validate code directly that is already available off the "v" variable? + - localization etc DATETIME diff --git a/ayanova/src/api/gzvalidate.js b/ayanova/src/api/gzvalidate.js index e9494c6d..6272ac59 100644 --- a/ayanova/src/api/gzvalidate.js +++ b/ayanova/src/api/gzvalidate.js @@ -108,32 +108,6 @@ export default { Max255(v, ref) { return this.MaxLength(v, ref, 255); }, - // /////////////////////////////// - // // AFTER - // After(startDate, endDate) { - // if (_.isEmpty(startDate)) { - // return false; - // } - // if (_.isEmpty(endDate)) { - // return false; - // } - - // startDate = dayjs(startDate); - // endDate = dayjs(endDate); - - // // if either is not valid. - // if (!startDate || !endDate) { - // return false; - // } - - // if (startDate.isAfter(endDate)) { - // // "ErrorStartDateAfterEndDate": "Start date must be earlier than stop / end date", - // var err = locale.get("ErrorStartDateAfterEndDate"); - // return err; - // } else { - // return false; - // } - // }, /////////////////////////////// // AFTER After(v, refStart, refEnd) {