X-Git-Url: https://git-public.kairo.at/?p=authserver.git;a=blobdiff_plain;f=authsystem.js;h=faaf975c36c48f34adcc97495bdd3f535f20bdc8;hp=2e21b0f99003529365ed5ac36be482c8f1a840da;hb=46f7aedadd9c6b1bb64e72c4c0770d9b1030454f;hpb=b0e48c35c57284bf91bb8b3dc2da4c8a3206617c diff --git a/authsystem.js b/authsystem.js index 2e21b0f..faaf975 100644 --- a/authsystem.js +++ b/authsystem.js @@ -5,10 +5,22 @@ window.onload = function() { var jsWarning = document.getElementById("jswarning"); if (jsWarning) { - document.getElementById("jswarning").classList.add("hidden"); + if (jsWarning.classList) { + jsWarning.classList.add("hidden"); + } + else { + // IE9 or older (sigh) + jsWarning.setAttribute("class", "warn hidden"); + } } var loginForm = document.getElementById("loginform"); if (loginForm) { - loginForm.classList.remove("hidden"); + if (loginForm.classList) { + loginForm.classList.remove("hidden"); + } + else { + // IE9 or older (sigh) + loginForm.setAttribute("class", "loginarea"); + } } }