Commit 1970c9b499915309b55abc0c68ed8a66b6cf69f5
1 parent
1a91d42c7b
Exists in
master
si recarga la pagina con oposición tildada, volver a abri esa sección
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
app/Resources/views/solicitudes/adscripcion.html.twig
@@ -54,6 +54,19 @@ | @@ -54,6 +54,19 @@ | ||
54 | {% block javascripts %} | 54 | {% block javascripts %} |
55 | {{ parent() }} | 55 | {{ parent() }} |
56 | <script type="text/javascript"> | 56 | <script type="text/javascript"> |
57 | + //si recarga la página con errores y habia marcado que tenía concurso de opsoción | ||
58 | + if ($('#user_oposicion').prop('checked')) { | ||
59 | + $('.esc_oposicion').show(); | ||
60 | + $("#user_escala").prop('required', $(this).prop("checked")); | ||
61 | + $("#user_fecha_oposicion_day").prop('required', $(this).prop("checked")); | ||
62 | + $("#user_fecha_oposicion_month").prop('required', $(this).prop("checked")); | ||
63 | + $("#user_fecha_oposicion_year").prop('required', $(this).prop("checked")); | ||
64 | + $("#user_documento_oposicion").prop('required', $(this).prop("checked")); | ||
65 | + $("#user_lineas_investigacion").prop('required', $(this).prop("checked")); | ||
66 | + $("#user_titulo_trabajo").prop('required', $(this).prop("checked")); | ||
67 | + | ||
68 | + } | ||
69 | + | ||
57 | $('#user_oposicion').click(function() { | 70 | $('#user_oposicion').click(function() { |
58 | $('.esc_oposicion')[this.checked ? "show" : "hide"](); | 71 | $('.esc_oposicion')[this.checked ? "show" : "hide"](); |
59 | $("#user_escala").prop('required', $(this).prop("checked")); | 72 | $("#user_escala").prop('required', $(this).prop("checked")); |