From e1d4f0afc8717e4e2524439dc80d55769f838d4a Mon Sep 17 00:00:00 2001
From: Paulo Gustavo Veiga <pveiga@wisemapping.com>
Date: Mon, 17 Sep 2012 00:35:39 -0300
Subject: [PATCH] - Fix login button bug when the form produces an error.

---
 wise-webapp/src/main/webapp/jsp/login.jsp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wise-webapp/src/main/webapp/jsp/login.jsp b/wise-webapp/src/main/webapp/jsp/login.jsp
index 481928c1..890b4891 100644
--- a/wise-webapp/src/main/webapp/jsp/login.jsp
+++ b/wise-webapp/src/main/webapp/jsp/login.jsp
@@ -6,7 +6,7 @@
 <script type="text/javascript" language="javascript">
     $(function () {
         $('#loginForm').submit(function () {
-            $('.btn-primary').button("<spring:message code="SIGN_IN"/> ...");
+            $('.btn-primary').button("loading");
         });
     });
 </script>
@@ -41,7 +41,7 @@
             <div class="control-group" style="text-align: right">
 
                 <label>
-                    <button class="btn btn-primary" tabindex="4"><spring:message code="SIGN_IN"/></button>
+                    <button class="btn btn-primary" tabindex="4"  data-loading-text="<spring:message code="SIGN_ING"/>"><spring:message code="SIGN_IN"/></button>
                     <input type="checkbox" id="rememberme" name="_spring_security_remember_me"
                            tabindex="3"/> <spring:message code="REMEMBER_ME"/>
                 </label>