From 6d62f27c4081159506d1c182fb165ab32d643daa Mon Sep 17 00:00:00 2001 From: Wilmer Date: Thu, 19 Oct 2017 07:47:38 -0400 Subject: [PATCH] remueve el cargando de todos los botones del portal exepto el del formulario final --- app/Resources/views/portal/index.html.twig | 2 +- src/AppBundle/Form/SolicitarType.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Resources/views/portal/index.html.twig b/app/Resources/views/portal/index.html.twig index 53ae647..429a770 100644 --- a/app/Resources/views/portal/index.html.twig +++ b/app/Resources/views/portal/index.html.twig @@ -348,7 +348,7 @@ }); }); - $('.btn').on('click', function() { + $('.cargando').on('click', function() { var $this = $(this); $this.button('loading'); }); diff --git a/src/AppBundle/Form/SolicitarType.php b/src/AppBundle/Form/SolicitarType.php index 69c579d..151ca3e 100644 --- a/src/AppBundle/Form/SolicitarType.php +++ b/src/AppBundle/Form/SolicitarType.php @@ -110,7 +110,7 @@ class SolicitarType extends AbstractType ->add('send', SubmitType::class, array( 'label' => 'Enviar Solicitud', 'attr' => array( - 'class' => 'btn btn-success', + 'class' => 'btn btn-success cargando', 'data-loading-text' => " Enviando Solicitud..." ) )); -- 2.0.0