Commit 5dbe1ed7 authored by Aiguille's avatar Aiguille

fix connexion page : default username erased onfocus

parent 46bfce61
...@@ -117,14 +117,24 @@ function setCheckboxesRange(the_form, basename, min, max) ...@@ -117,14 +117,24 @@ function setCheckboxesRange(the_form, basename, min, max)
function switchSelConnection(obj) function switchSelConnection(obj)
{ {
var sel = obj.options[obj.selectedIndex].innerHTML; var sel = obj.options[obj.selectedIndex].innerHTML;
var txt = "identifiant"; var txt;
switch (sel)
if (sel == "Alias") {
txt = "alias"; case "Alias":
else if (sel == "E-mail" || sel == "UTBM / Assidu") txt = "alias";
txt = "prenom.nom"; break;
case "E-mail":
obj.parentNode.parentNode.parentNode.childNodes[2].childNodes[2].childNodes[0].value = txt; case "UTBM / Assidu":
txt = "prenom.nom";
break;
default:
txt = "identifiant";
break;
}
var username = obj.parentNode.parentNode.parentNode.childNodes[2].childNodes[2].childNodes[0];
username.setAttribute("onfocus", "if(this.value=='" + txt + "')this.value=''");
username.setAttribute("onblur", "if(this.value=='')this.value='" + txt + "'");
username.value = txt;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment