diff options
author | sreyes <sreyes@dataworks.com.py> | 2014-12-07 19:51:11 (GMT) |
---|---|---|
committer | sreyes <sreyes@dataworks.com.py> | 2014-12-07 19:51:11 (GMT) |
commit | 464f528cff97af7b0c08b0f4c4d754ae716b36a7 (patch) | |
tree | 82b1b1610b68588d2524c21210d5f4a4a8baaeef /EjercitarWeb/WebContent/iniciar_curso.jsp | |
parent | ea0d23a9057a8d9822d4debba9aa60b32a370e26 (diff) |
correcciones en validaciones, todo funcionandosamurey
Diffstat (limited to 'EjercitarWeb/WebContent/iniciar_curso.jsp')
-rw-r--r-- | EjercitarWeb/WebContent/iniciar_curso.jsp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/EjercitarWeb/WebContent/iniciar_curso.jsp b/EjercitarWeb/WebContent/iniciar_curso.jsp index 38ce917..da1248d 100644 --- a/EjercitarWeb/WebContent/iniciar_curso.jsp +++ b/EjercitarWeb/WebContent/iniciar_curso.jsp @@ -53,11 +53,11 @@ total = parseFloat(total) + parseFloat(num); } $("#td-total-temas").text(total); - if (total != 1) { + if (total != 100) { $("#h-temas").removeClass("text-success"); $("#h-temas").addClass('text-danger'); $("#tr-total-temas").attr('class', 'danger'); - } else if (total == 1) { + } else if (total == 100) { $("#h-temas").removeClass("text-danger"); $("#h-temas").addClass('text-success'); $("#tr-total-temas").attr('class', 'success'); @@ -76,11 +76,11 @@ total = parseFloat(total) + parseFloat(num); } $("#td-total-concepto-" + id_tema).text(total); - if (total != 1) { + if (total != 100) { $("#h-concepto-" + id_tema).removeClass("text-success"); $("#h-concepto-" + id_tema).addClass('text-danger'); $("#tr-total-concepto-" + id_tema).attr('class', 'danger'); - } else if (total == 1) { + } else if (total == 100) { $("#h-concepto-" + id_tema).removeClass("text-danger"); $("#h-concepto-" + id_tema).addClass('text-success'); $("#tr-total-concepto-" + id_tema).attr('class', 'success'); @@ -93,7 +93,7 @@ var isValid = true; $.each(totalsValue, function(idTotal, value) { if (isValid) { - isValid = value == 1; + isValid = value == 100; } return isValid; }); |