From b27572cbb1502d8caf2f3d2e389471e729da0201 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Tue, 5 Mar 2024 12:25:11 +0300 Subject: [PATCH] Prevent default event when clicking OpenID button --- app/assets/javascripts/login.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/login.js b/app/assets/javascripts/login.js index 5853193bc..43e2cf660 100644 --- a/app/assets/javascripts/login.js +++ b/app/assets/javascripts/login.js @@ -14,7 +14,8 @@ $(document).ready(function () { }); // Add click handler to show OpenID field - $("#openid_open_url").click(function () { + $("#openid_open_url").click(function (e) { + e.preventDefault(); $("#openid_url").val("http://"); $("#login_auth_buttons").hide(); $("#login_openid_url").show(); -- 2.39.5