Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 4408 | Rev 4413 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 4408 Rev 4409
Línea 708... Línea 708...
708
                for (i = 0; i < objFormGenerator.sections.length; i++) {
708
                for (i = 0; i < objFormGenerator.sections.length; i++) {
709
                    if (objFormGenerator.sections[i].questions.length == 0) {
709
                    if (objFormGenerator.sections[i].questions.length == 0) {
710
                        $.fn.showError('ERROR_QUESTIONS'.replace('%s', objFormGenerator.sections[i].name));
710
                        $.fn.showError('ERROR_QUESTIONS'.replace('%s', objFormGenerator.sections[i].name));
711
                        return false;
711
                        return false;
712
                    }
712
                    }
713
                    var valueSection = parseInt(objFormGenerator.sections[i].value);
713
                    // var valueSection = parseInt(objFormGenerator.sections[i].value);
714
                    var totalValueQuestion = 0;
714
                    // var totalValueQuestion = 0;
715
                    for (j = 0; j < objFormGenerator.sections[i].questions.length; j++) {
715
                    for (j = 0; j < objFormGenerator.sections[i].questions.length; j++) {
716
                        valueQuestion = parseInt(objFormGenerator.sections[i].questions[j].value);
716
                        // valueQuestion = parseInt(objFormGenerator.sections[i].questions[j].value);
717
                        totalValueQuestion = totalValueQuestion + valueQuestion;
717
                        // totalValueQuestion = totalValueQuestion + valueQuestion;
718
                        if (objFormGenerator.sections[i].questions[j].type == 'simple' ||
718
                        if (objFormGenerator.sections[i].questions[j].type == 'simple' ||
719
                            objFormGenerator.sections[i].questions[j].type == 'multiple' ||
719
                            objFormGenerator.sections[i].questions[j].type == 'multiple' ||
720
                            objFormGenerator.sections[i].questions[j].type == 'rating-open') {
720
                            objFormGenerator.sections[i].questions[j].type == 'rating-open') {
721
                            var questionNumber = j + 1;
721
                            var questionNumber = j + 1;
722
                            var numberCorrect = 0;
722
                            var numberCorrect = 0;