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