X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2FpageProfile.js;h=5f17b01c968cffd42422cd64d6dfab63680c2c0f;hp=eaae93bea3f495b4698ab8cdce24ab5d3b937dfb;hb=bb692b6ec033e2c6ce4dd12d95831af96033ec6f;hpb=18e8fadf5aad8d7b2e7b750210dc949951b4a124 diff --git a/js/pageProfile.js b/js/pageProfile.js index eaae93b..5f17b01 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") @@ -135,6 +143,15 @@ return '\ e-mail\ \ \ + \ + Ordre des messages\ + \ + \ + \ + \ ' + (this.client.ekMaster ? 'Degrée d\'ostentation\ \