diff --git a/UI/WebServerResources/SOGoRootPage.js b/UI/WebServerResources/SOGoRootPage.js index c20669e21..6f4392d0a 100644 --- a/UI/WebServerResources/SOGoRootPage.js +++ b/UI/WebServerResources/SOGoRootPage.js @@ -27,12 +27,12 @@ function onLoginClick(event) { triggerAjaxRequest(url, onLoginCallback); } - event.preventDefault(); + preventDefault(event); } function onLoginCallback(http) { if (http.readyState == 4) { - if (http.status == 204) { + if (isHttpStatus204(http.status)) { window.location.href = ApplicationBaseURL + $("userName").value; } }