Commit 854f295c6f1c00f3906747c440861673a66fab4c
1 parent
9c5c5f0a48
Exists in
master
corrige problema con los botones cuando se colocan en modo procesar solicitud y …
…ocurrio un error que no deja terminar de formalizar el proceso
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
app/Resources/views/cea/solicitudes_mostar.html.twig
@@ -385,6 +385,7 @@ | @@ -385,6 +385,7 @@ | ||
385 | console.log($(':radio:checked', this)[i]); | 385 | console.log($(':radio:checked', this)[i]); |
386 | if ( ($(':radio:checked', this)[i].value == "")) { | 386 | if ( ($(':radio:checked', this)[i].value == "")) { |
387 | alert('Debes revisar todos los documentos para poder enviar la solicitud!'); | 387 | alert('Debes revisar todos los documentos para poder enviar la solicitud!'); |
388 | + $(".btn").button('reset'); | ||
388 | return false; | 389 | return false; |
389 | } | 390 | } |
390 | 391 | ||
@@ -395,6 +396,7 @@ | @@ -395,6 +396,7 @@ | ||
395 | console.log($(':radio:checked', this)[i]); | 396 | console.log($(':radio:checked', this)[i]); |
396 | if (($(':radio:checked', this)[i].value == "3")) { | 397 | if (($(':radio:checked', this)[i].value == "3")) { |
397 | alert('No puedes aprobar una solicitud con documentos en estatus de rechazado'); | 398 | alert('No puedes aprobar una solicitud con documentos en estatus de rechazado'); |
399 | + $(".btn").button('reset'); | ||
398 | return false; | 400 | return false; |
399 | } | 401 | } |
400 | 402 | ||
@@ -402,5 +404,9 @@ | @@ -402,5 +404,9 @@ | ||
402 | } | 404 | } |
403 | 405 | ||
404 | }); | 406 | }); |
407 | + | ||
408 | + $('#motivo_rechazo').on('hidden.bs.modal', function (e) { | ||
409 | + $(".btn").button('reset'); | ||
410 | + }) | ||
405 | </script> | 411 | </script> |
406 | {% endblock %} | 412 | {% endblock %} |
407 | \ No newline at end of file | 413 | \ No newline at end of file |