Conjunto a459423 en consulta_publica
- Fecha y hora:
- 10/05/2017 12:44:16 (hace 7 años)
- Branches:
- master, base, constituyente, estudiantes, general, plan_patria, sala
- Children:
- 218d0ba, 5d13782
- Parents:
- d22a7ec
- Fichero:
-
- 1 editado
Leyenda
- No modificado
- Añadido
- Eliminado
-
static/js/funciones.js
re9ca953 ra459423 587 587 var text_area = $(value).parent().parent().find('textarea'); 588 588 not_empty = $(text_area).val().trim() !== '' ? 1:0; 589 not_empty = $(text_area).val().length >= 500 && $(text_area).val().length <= 2000 ? 1:0; 590 if ($(text_area).val().length < 500 || $(text_area).val().length >2000) { 591 bootbox.alert("La longitud de la respuesta debe estar entre 500 y 2000 cáracteres"); 592 } 589 593 } 590 594 } … … 596 600 if (name.search('abierta')!==-1) { 597 601 not_empty = $(value).val().trim() !== '' ? 1:not_empty; 602 not_empty = $(value).val().length >= 500 && $(value).val().length <= 2000 ? 1:0; 603 if ($(value).val().length < 500 || $(value).val().length >2000) { 604 bootbox.alert("La longitud de la respuesta debe estar entre 500 y 2000 cáracteres"); 605 } 598 606 } 599 607 });
Nota: Vea TracChangeset
para ayuda en el uso del visor de conjuntos de cambios.