Commit 59586b8f147d5272aa23a6ea26354a26fd3d67ac

Authored by Matheus Nicoski
Committed by GitHub
2 parents 0dd923a6 00f700ec
Exists in 2.9 and in 7 other branches 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8

Merge pull request #6438 from portabilis/issue-6419

Habilita campo Anos letivos ao clicar no checkedAll
ieducar/modules/Cadastro/Assets/Javascripts/ComponentesSerie.js
@@ -74,9 +74,13 @@ function checkAll(id){ @@ -74,9 +74,13 @@ function checkAll(id){
74 $j( '.check_componente_area_' + id).prop( "checked", isChecked ); 74 $j( '.check_componente_area_' + id).prop( "checked", isChecked );
75 $j( '.area_conhecimento_' + id + ' .carga_horaria').prop("disabled", !isChecked); 75 $j( '.area_conhecimento_' + id + ' .carga_horaria').prop("disabled", !isChecked);
76 $j( '.area_conhecimento_' + id + ' .tipo_nota').prop("disabled", !isChecked); 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 if(!isChecked){ 79 if(!isChecked){
78 $j( '.area_conhecimento_' + id + ' .carga_horaria').val(''); 80 $j( '.area_conhecimento_' + id + ' .carga_horaria').val('');
79 $j( '.area_conhecimento_' + id + ' .tipo_nota').val(''); 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,4 +437,4 @@ function htmlComponentesAreaConhecimento(id, componente_id, componente_nome, fir
433 ` + iconCloneAnosLetivos + ` 437 ` + iconCloneAnosLetivos + `
434 </td> 438 </td>
435 </tr>`; 439 </tr>`;
436 -}  
437 \ No newline at end of file 440 \ No newline at end of file
  441 +}