Commit d4edd0581096aa2332d77859ee4503fccf48520d
1 parent
ee5e0f0d
Exists in
2.9
and in
9 other branches
Inverte logica de validação
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
ieducar/modules/Cadastro/Assets/Javascripts/Aluno.js
@@ -810,11 +810,11 @@ resourceOptions.handleGet = function (dataResponse) { | @@ -810,11 +810,11 @@ resourceOptions.handleGet = function (dataResponse) { | ||
810 | function habilitaRecursosProvaInep() { | 810 | function habilitaRecursosProvaInep() { |
811 | var deficiencias = $j('#deficiencias').val(); | 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 | // o MultipleSearch vem com uma opção vazia por padrão | 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 |