3 $(document).ready(function () {
4 // Attach referer to authentication buttons
5 $(".auth_button").each(function () {
6 var params = Qs.parse(this.search.substring(1));
7 params.referer = $("#referer").val();
8 this.search = Qs.stringify(params);
11 // Add click handler to show OpenID field
12 $("#openid_open_url").click(function () {
13 $("#openid_url").val("http://");
14 $("#login_auth_buttons").hide();
15 $("#login_openid_url").show();
16 $("#openid_login_button").show();
19 // Hide OpenID field for now
20 $("#login_openid_url").hide();
21 $("#openid_login_button").hide();