[snowy] Fix the appearance of a button on the login page



commit 7f9c6ff7f8f1bade121cd06174deff1b0b267f8e
Author: Leon Handreke <leon handreke gmail com>
Date:   Sun Apr 10 14:11:05 2011 +0200

    Fix the appearance of a button on the login page
    
    Hide the OpenID URL form before submitting any other URLs through it so
    the submitted URL doesn't appear in there briefly before unloading the
    page.

 site_media/js/accounts/login.js |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/site_media/js/accounts/login.js b/site_media/js/accounts/login.js
index 3363e50..c1eff58 100644
--- a/site_media/js/accounts/login.js
+++ b/site_media/js/accounts/login.js
@@ -67,6 +67,9 @@ function insertOpenIDProviderButtons() {
         $("#openid-provider-username").focus();
       }
       else {
+        // Hide the openID login form, otherwise the user would see
+        // the provider URL appearing in there
+        $("#openid-login-form").hide();
         // this provider has one URL for all users
         submitOpenIDLoginForm(provider.url);
       }
@@ -102,6 +105,8 @@ $(document).ready(function() {
    $(".openid-provider-button").button();
    // make all form submit buttons into jQuery buttons
    $("input:submit").button();
+   // make all regular form buttons into jQuery buttons
+   $("input:button").button();
 
    // bind the log in button in the openID username input "form"
    $("#openid-provider-username-submit").bind('click', function() {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]