From b8030e1b98105aba6cea05c257b635825465a818 Mon Sep 17 00:00:00 2001 From: Joel Date: Fri, 19 Nov 2021 09:44:32 -0300 Subject: [PATCH] validacion descripcion experiencia requerido en form postulante --- curriculumsearch/src/main/resources/static/main.js | 4 ++-- curriculumsearch/src/main/webapp/jsp/postulante-form.jsp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/curriculumsearch/src/main/resources/static/main.js b/curriculumsearch/src/main/resources/static/main.js index beb8b33..a371dc7 100644 --- a/curriculumsearch/src/main/resources/static/main.js +++ b/curriculumsearch/src/main/resources/static/main.js @@ -223,11 +223,11 @@ function agregarFieldExpierncia(event){ let pos_rec; let returnFlag = false; - let requiredValues = ["institucion", "cargo", "fechaDesde"] + let requiredValues = ["institucion", "cargo", "fechaDesde", "descripcion"] formData.forEach((value, key)=>{ if(requiredValues.includes(key) - && value==="" && returnFlag == false){ + && value.trim()==="" && returnFlag == false){ console.log(key, value) returnFlag = true; } diff --git a/curriculumsearch/src/main/webapp/jsp/postulante-form.jsp b/curriculumsearch/src/main/webapp/jsp/postulante-form.jsp index 09310b1..f48c037 100644 --- a/curriculumsearch/src/main/webapp/jsp/postulante-form.jsp +++ b/curriculumsearch/src/main/webapp/jsp/postulante-form.jsp @@ -316,7 +316,7 @@
- +
-- libgit2 0.26.0