X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2FpageProfile.js;h=f3ef3a8e0071ba21a3b0d657307453cdc1d24f42;hp=4a86aee1ac16d2212c196f04b15080ba160b0757;hb=2faefc542de20cfcc0220b5c7fd7982dd0fbbfd4;hpb=3f3371f52e6d1e513011dd02a3679a079aa2253d diff --git a/js/pageProfile.js b/js/pageProfile.js index 4a86aee..f3ef3a8 100755 --- a/js/pageProfile.js +++ b/js/pageProfile.js @@ -11,6 +11,7 @@ function PageProfile(client, formateur, util) PageProfile.prototype.contenu = function() { + // pourquoi ? return "" } @@ -33,13 +34,18 @@ PageProfile.prototype.chargerProfile = function() jQuery("form#profile input.login").val(this.client.login) jQuery("form#profile input.pseudo").val(this.client.pseudo) - jQuery("form#profile input.email").val(this.client.email) + jQuery("form#profile input.email").val(this.client.email) + + jQuery("form#profile select#affichagePseudo option").removeAttr("selected") + jQuery("form#profile select#affichagePseudo option[value=" + this.client.nickFormat + "]").attr("selected", "selected") + - jQuery("#page form#profile button").click( + jQuery("form#profile button").click( function() { thisPage.client.pseudo = thisPage.formateur.filtrerInputPseudo(jQuery("form#profile input.pseudo").val()) - thisPage.client.email = jQuery("form#profile input.email").val() + thisPage.client.email = jQuery("form#profile input.email").val() + thisPage.client.nickFormat = jQuery("form#profile select#affichagePseudo option:selected").attr("value") var password = jQuery("form#profile input.password").val() var passwordRe = jQuery("form#profile input.passwordRe").val() @@ -108,6 +114,16 @@ return '\ e-mail\ \ \ + \ + Affichage des identifiants\ + \ + \ + \ + \ ' : '') + '\ \ \ @@ -115,4 +131,5 @@ return '\ \ \ ' -} \ No newline at end of file +} +