Commit 59586b8f147d5272aa23a6ea26354a26fd3d67ac
Committed by
GitHub
Exists in
2.9
and in
7 other branches
Merge pull request #6438 from portabilis/issue-6419
Habilita campo Anos letivos ao clicar no checkedAll
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
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 | +} | ... | ... |