Commit d4edd0581096aa2332d77859ee4503fccf48520d

Authored by bonot
1 parent ee5e0f0d
Exists in 2.9 and in 9 other branches 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8

Inverte logica de validação

ieducar/modules/Cadastro/Assets/Javascripts/Aluno.js
... ... @@ -810,11 +810,11 @@ resourceOptions.handleGet = function (dataResponse) {
810 810 function habilitaRecursosProvaInep() {
811 811 var deficiencias = $j('#deficiencias').val();
812 812  
813   - $j('#recursos_prova_inep__').prop('disabled', true).val([]).trigger("chosen:updated");
  813 + $j('#recursos_prova_inep__').prop('disabled', false).trigger("chosen:updated");
814 814  
815 815 // o MultipleSearch vem com uma opção vazia por padrão
816   - if (deficiencias.length > 1) {
817   - $j('#recursos_prova_inep__').prop('disabled', false).trigger("chosen:updated");
  816 + if (deficiencias.length <= 1) {
  817 + $j('#recursos_prova_inep__').prop('disabled', true).val([]).trigger("chosen:updated");
818 818 }
819 819 }
820 820  
... ...