Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/EjercitarWeb/WebContent/iniciar_curso.jsp
diff options
context:
space:
mode:
authorsreyes <sreyes@dataworks.com.py>2014-12-07 19:51:11 (GMT)
committer sreyes <sreyes@dataworks.com.py>2014-12-07 19:51:11 (GMT)
commit464f528cff97af7b0c08b0f4c4d754ae716b36a7 (patch)
tree82b1b1610b68588d2524c21210d5f4a4a8baaeef /EjercitarWeb/WebContent/iniciar_curso.jsp
parentea0d23a9057a8d9822d4debba9aa60b32a370e26 (diff)
correcciones en validaciones, todo funcionandosamurey
Diffstat (limited to 'EjercitarWeb/WebContent/iniciar_curso.jsp')
-rw-r--r--EjercitarWeb/WebContent/iniciar_curso.jsp10
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;
});