Commit 00f700ec48c32a11317cf0465cb8d463bcb820a0

Authored by Matheus Nicoski
1 parent 0dd923a6
Exists in 2.8 and in 6 other branches 2.2, 2.3, 2.4, 2.5, 2.6, 2.7

Habilita campo Anos letivos ao clicar no checkedAll

ieducar/modules/Cadastro/Assets/Javascripts/ComponentesSerie.js
... ... @@ -74,9 +74,13 @@ function checkAll(id){
74 74 $j( '.check_componente_area_' + id).prop( "checked", isChecked );
75 75 $j( '.area_conhecimento_' + id + ' .carga_horaria').prop("disabled", !isChecked);
76 76 $j( '.area_conhecimento_' + id + ' .tipo_nota').prop("disabled", !isChecked);
  77 + $j( '.area_conhecimento_' + id + ' .anos_letivos').prop("disabled", !isChecked);
  78 + $j( '.area_conhecimento_' + id + ' .anos_letivos').trigger("chosen:updated");
77 79 if(!isChecked){
78 80 $j( '.area_conhecimento_' + id + ' .carga_horaria').val('');
79 81 $j( '.area_conhecimento_' + id + ' .tipo_nota').val('');
  82 + $j( '.area_conhecimento_' + id + ' .anos_letivos').val('');
  83 + $j( '.area_conhecimento_' + id + ' .anos_letivos').trigger("chosen:updated");
80 84 }
81 85 }
82 86  
... ... @@ -433,4 +437,4 @@ function htmlComponentesAreaConhecimento(id, componente_id, componente_nome, fir
433 437 ` + iconCloneAnosLetivos + `
434 438 </td>
435 439 </tr>`;
436   -}
437 440 \ No newline at end of file
  441 +}
... ...