1 $(document).ready(function() {
2 // Preserve location hash in referer
3 if (window.location.hash) {
4 $("#referer").val($("#referer").val() + window.location.hash);
7 // Add click handler to show OpenID field
8 $("#openid_open_url").click(function() {
9 $("#openid_url").val("http://");
10 $("#login_auth_buttons").hide();
11 $("#login_openid_url").show();
12 $("#login_openid_submit").show();
15 // Hide OpenID field for now
16 $("#login_openid_url").hide();
17 $("#login_openid_submit").hide();