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 (e) {
14 $("#openid_url").val("http://");
15 $("#login_auth_buttons").hide().removeClass("d-flex");
16 $("#login_openid_url").show();
17 $("#openid_login_button").show();
20 // Hide OpenID field for now
21 $("#login_openid_url").hide();
22 $("#openid_login_button").hide();