diff --git a/UI/WebServerResources/SOGoRootPage.js b/UI/WebServerResources/SOGoRootPage.js index 7c60d2cae..547bf11ea 100644 --- a/UI/WebServerResources/SOGoRootPage.js +++ b/UI/WebServerResources/SOGoRootPage.js @@ -7,10 +7,12 @@ function initLogin() { + "; expires=" + date.toGMTString()); var about = $("about"); - about.observe("click", function(event) { $("aboutBox").show(); }); + if (about) { + about.observe("click", function(event) { $("aboutBox").show(); }); - var aboutClose = $("aboutClose"); - aboutClose.observe("click", function(event) { $("aboutBox").hide(); }); + var aboutClose = $("aboutClose"); + aboutClose.observe("click", function(event) { $("aboutBox").hide(); }); + } var submit = $("submit"); submit.observe("click", onLoginClick);