X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2FpageProfile.js;h=b666643b16004307bb7712c9dcb539b9bbe0e0bd;hp=eaae93bea3f495b4698ab8cdce24ab5d3b937dfb;hb=55b0291a691e56465277811aac749e930509fea2;hpb=30d42cfc83fbf3ebf24dec3e750257b3f174f290 diff --git a/js/pageProfile.js b/js/pageProfile.js index eaae93b..b666643 100755 --- a/js/pageProfile.js +++ b/js/pageProfile.js @@ -54,19 +54,27 @@ PageProfile.prototype.chargerProfile = function() $("form#profile input#viewTooltips").attr("checked", this.client.viewTooltips) $("form#profile input#viewTimes").attr("checked", this.client.viewTimes) - $("form#profile select#degreeOstentatoire option").removeAttr("selected") - $("form#profile select#degreeOstentatoire option[value=" + this.client.ostentatiousMaster + "]").attr("selected", "selected") + $("form#profile select#chatOrder option").removeAttr("selected") + $("form#profile select#chatOrder option[value=" + this.client.chatOrder + "]").attr("selected", "selected") $("form#profile select#affichagePseudo option").removeAttr("selected") $("form#profile select#affichagePseudo option[value=" + this.client.nickFormat + "]").attr("selected", "selected") + + if (this.client.ostentatiousMaster) + { + $("form#profile select#degreeOstentatoire option").removeAttr("selected") + $("form#profile select#degreeOstentatoire option[value=" + this.client.ostentatiousMaster + "]").attr("selected", "selected") + } $("form#profile button").click( function() { thisPage.client.pseudo = thisPage.formateur.filtrerInputPseudo($("form#profile input.pseudo").val()) thisPage.client.email = $("form#profile input.email").val() + thisPage.client.chatOrder = $("form#profile select#chatOrder option:selected").attr("value") thisPage.client.nickFormat = $("form#profile select#affichagePseudo option:selected").attr("value") - thisPage.client.ostentatiousMaster = $("form#profile select#degreeOstentatoire option:selected").attr("value") + if (thisPage.client.ekMaster) + thisPage.client.ostentatiousMaster = $("form#profile select#degreeOstentatoire option:selected").attr("value") thisPage.client.viewTooltips = $("form#profile input#viewTooltips").attr("checked") thisPage.client.viewTimes = $("form#profile input#viewTimes").attr("checked") @@ -83,7 +91,7 @@ PageProfile.prototype.chargerProfile = function() } if(!thisPage.client.flush()) - thisPage.util.messageDialogue("Impossible de mettre à jour votre profile, causes inconnues", messageType.erreur) + thisPage.util.messageDialogue("Impossible de mettre à jour votre profile, causes inconnues", euphorik.Util.messageType.erreur) else { thisPage.util.messageDialogue("Votre profile a été mis à jour") @@ -135,6 +143,15 @@ return '\ e-mail\ \ \ + \ + Ordre des messages\ + \ + \ + \ + \ ' + (this.client.ekMaster ? 'Degrée d\'ostentation\ \