X-Git-Url: https://git-public.kairo.at/?p=authserver.git;a=blobdiff_plain;f=authsystem.js;h=faaf975c36c48f34adcc97495bdd3f535f20bdc8;hp=8fd97566360ccce5fe1a5f0bdc179020ce9506ad;hb=46f7aedadd9c6b1bb64e72c4c0770d9b1030454f;hpb=d26d08a171f0f65437bc7ea416239cfb31c4db27;ds=sidebyside diff --git a/authsystem.js b/authsystem.js index 8fd9756..faaf975 100644 --- a/authsystem.js +++ b/authsystem.js @@ -3,9 +3,24 @@ * You can obtain one at http://mozilla.org/MPL/2.0/. */ window.onload = function() { - document.getElementById("jswarning").classList.add("hidden"); + var jsWarning = document.getElementById("jswarning"); + if (jsWarning) { + 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"); + } } }