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 $("#openid_login_form").show();
18 // Hide OpenID field for now
19 $("#openid_login_form").hide();