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