Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 232 Rev 233
Línea 745... Línea 745...
745
                            if (objFormGenerator.sections[i].questions[j].type == 'simple' || objFormGenerator.sections[i].questions[j].type == 'multiple') {
745
                            if (objFormGenerator.sections[i].questions[j].type == 'simple' || objFormGenerator.sections[i].questions[j].type == 'multiple') {
746
                                if (numberCorrect == 0) {
746
                                if (numberCorrect == 0) {
747
                                    $.fn.showError('ERROR_OPTIONS_CORRECT'.replace('%s', objFormGenerator.sections[i].name).replace('%n', questionNumber));
747
                                    $.fn.showError('ERROR_OPTIONS_CORRECT'.replace('%s', objFormGenerator.sections[i].name).replace('%n', questionNumber));
748
                                    return false;
748
                                    return false;
749
                                }
749
                                }
-
 
750
                                if (
750
                                if (objFormGenerator.sections[i].questions[j].type == 'simple' && numberCorrect > 1) {
751
                                    objFormGenerator.sections[i].questions[j].type == 'simple' && numberCorrect > 1) {
751
                                    $.fn.showError('ERROR_OPTIONS_DUPLICATE_CORRECT'.replace('%s', objFormGenerator.sections[i].name).replace('%n', questionNumber));
752
                                    $.fn.showError('ERROR_OPTIONS_DUPLICATE_CORRECT'.replace('%s', objFormGenerator.sections[i].name).replace('%n', questionNumber));
752
                                    return false;
753
                                    return false;
753
                                }
754
                                }
754
                                if (objFormGenerator.sections[i].questions[j].type == 'multiple' && numberCorrect == 1) {
755
                                if (objFormGenerator.sections[i].questions[j].type == 'multiple' && numberCorrect == 1) {
755
                                    $.fn.showError('ERROR_OPTIONS_ONE_CORRECT'.replace('%s', objFormGenerator.sections[i].name).replace('%n', questionNumber));
756
                                    $.fn.showError('ERROR_OPTIONS_ONE_CORRECT'.replace('%s', objFormGenerator.sections[i].name).replace('%n', questionNumber));
756
                                    return false;
757
                                    return false;
757
                                }
758
                                }
758
                            }
759
                            }
-
 
760
 
-
 
761
                            console.log(totalOption)
-
 
762
                            console.log(valueQuestion);
759
                            if (objFormGenerator.sections[i].questions[j].type == 'multiple' && totalOption > valueQuestion) {
763
                            if (objFormGenerator.sections[i].questions[j].type == 'multiple' && totalOption > valueQuestion) {
760
                                $.fn.showError('ERROR_OPTIONS_SUM_VALUES'.replace('%s', objFormGenerator.sections[i].name).replace('%n', questionNumber));
764
                                $.fn.showError('ERROR_OPTIONS_SUM_VALUES'.replace('%s', objFormGenerator.sections[i].name).replace('%n', questionNumber));
761
                                return false;
765
                                return false;
762
                            }
766
                            }
763
                            if (objFormGenerator.sections[i].questions[j].type == 'rating-open' && maxOption > valueQuestion) {
767
                            if (objFormGenerator.sections[i].questions[j].type == 'rating-open' && maxOption > valueQuestion) {