Commit 427c88984e5a9c4d6409fb0155d754e9a1ec656d
1 parent
284a731195
Exists in
master
validado que no pueda seleccionar ascenso hasta que haya marcado el escalafon que concursó
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
app/Resources/views/solicitudes/adscripcion.html.twig
| ... | ... | @@ -79,6 +79,11 @@ |
| 79 | 79 | }); |
| 80 | 80 | |
| 81 | 81 | $('#user_ascenso').click(function() { |
| 82 | + | |
| 83 | + if ((!$("#user_escala").val()) && ($('#user_ascenso').prop('checked'))){ | |
| 84 | + alert("Primero debe seleccionar a que escalafón aprobó concurso"); | |
| 85 | + $('#user_ascenso').prop('checked', false); | |
| 86 | + } | |
| 82 | 87 | |
| 83 | 88 | if($("#user_escala").val() == 1) |
| 84 | 89 | $('.esc_asistente')[this.checked ? "show" : "hide"](); | ... | ... |