From b7a1fd2c40f6c021436a1310ae9b75258b05a67c Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 10 Sep 2007 18:42:13 +0000 Subject: [PATCH] Monotone-Parent: 426b535e2da36fbf5368515550e8353fd5148bc7 Monotone-Revision: b3fc892e5da4aadb8256c6689800fd5069d6ac91 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-09-10T18:42:13 Monotone-Branch: ca.inverse.sogo --- UI/WebServerResources/SOGoRootPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }