hide local signin when nothing is selected
authorJoey Hess <joey@kitenet.net>
Mon, 10 May 2010 20:04:28 +0000 (16:04 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 10 May 2010 20:04:28 +0000 (16:04 -0400)
underlays/openid-selector/ikiwiki/openid/openid-jquery.js

index 4eaa613d978e39dda431c20088629c5be3dc9420..f22f5776a17713b7a5d05b93a2040b6eb393ef49 100644 (file)
@@ -116,6 +116,7 @@ var openid = {
                        ' other' +
                        '</a>'
                );
+               $('#'+this.localsignin_id).hide();
        }
         
         $('#openid_form').submit(this.submit);
@@ -123,7 +124,7 @@ var openid = {
         var box_id = this.readCookie();
         if (box_id) {
                this.signin(box_id, true);
-        }  
+        }
     },
     getBoxHTML: function(provider, box_size) {
        var label="";