projects
/
euphorik.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ADD possibilité d'inverser le sens du chat
[euphorik.git]
/
js
/
pageProfile.js
diff --git
a/js/pageProfile.js
b/js/pageProfile.js
index
eaae93b
..
5f17b01
100755
(executable)
--- 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)
\r
$("form#profile input#viewTimes").attr("checked", this.client.viewTimes)
\r
\r
$("form#profile input#viewTooltips").attr("checked", this.client.viewTooltips)
\r
$("form#profile input#viewTimes").attr("checked", this.client.viewTimes)
\r
\r
- $("form#profile select#
degreeOstentatoire
option").removeAttr("selected")
\r
- $("form#profile select#
degreeOstentatoire option[value=" + this.client.ostentatiousMast
er + "]").attr("selected", "selected")
\r
+ $("form#profile select#
chatOrder
option").removeAttr("selected")
\r
+ $("form#profile select#
chatOrder option[value=" + this.client.chatOrd
er + "]").attr("selected", "selected")
\r
\r
$("form#profile select#affichagePseudo option").removeAttr("selected")
\r
$("form#profile select#affichagePseudo option[value=" + this.client.nickFormat + "]").attr("selected", "selected")
\r
\r
$("form#profile select#affichagePseudo option").removeAttr("selected")
\r
$("form#profile select#affichagePseudo option[value=" + this.client.nickFormat + "]").attr("selected", "selected")
\r
+
\r
+ if (this.client.ostentatiousMaster)
\r
+ {
\r
+ $("form#profile select#degreeOstentatoire option").removeAttr("selected")
\r
+ $("form#profile select#degreeOstentatoire option[value=" + this.client.ostentatiousMaster + "]").attr("selected", "selected")
\r
+ }
\r
\r
$("form#profile button").click(
\r
function()
\r
{
\r
thisPage.client.pseudo = thisPage.formateur.filtrerInputPseudo($("form#profile input.pseudo").val())
\r
thisPage.client.email = $("form#profile input.email").val()
\r
\r
$("form#profile button").click(
\r
function()
\r
{
\r
thisPage.client.pseudo = thisPage.formateur.filtrerInputPseudo($("form#profile input.pseudo").val())
\r
thisPage.client.email = $("form#profile input.email").val()
\r
+ thisPage.client.chatOrder = $("form#profile select#chatOrder option:selected").attr("value")
\r
thisPage.client.nickFormat = $("form#profile select#affichagePseudo option:selected").attr("value")
\r
thisPage.client.nickFormat = $("form#profile select#affichagePseudo option:selected").attr("value")
\r
- thisPage.client.ostentatiousMaster = $("form#profile select#degreeOstentatoire option:selected").attr("value")
\r
+ if (thisPage.client.ekMaster)
\r
+ thisPage.client.ostentatiousMaster = $("form#profile select#degreeOstentatoire option:selected").attr("value")
\r
thisPage.client.viewTooltips = $("form#profile input#viewTooltips").attr("checked")
\r
thisPage.client.viewTimes = $("form#profile input#viewTimes").attr("checked")
\r
\r
thisPage.client.viewTooltips = $("form#profile input#viewTooltips").attr("checked")
\r
thisPage.client.viewTimes = $("form#profile input#viewTimes").attr("checked")
\r
\r
@@
-135,6
+143,15
@@
return '\
<td>e-mail</td>\
\r
<td><input class="email" type="text" size="40" maxlength="100"/></td>\
\r
</tr>\
\r
<td>e-mail</td>\
\r
<td><input class="email" type="text" size="40" maxlength="100"/></td>\
\r
</tr>\
\r
+ <tr>\
\r
+ <td>Ordre des messages</td>\
\r
+ <td>\
\r
+ <select id="chatOrder">\
\r
+ <option value="chrono">Chronologique</option>\
\r
+ <option value="reverse">Anti-chronologique</option>\
\r
+ </select>\
\r
+ </td>\
\r
+ </tr>\
\r
<tr>' +
\r
(this.client.ekMaster ? '<td>Degrée d\'ostentation</td>\
\r
<td>\
\r
<tr>' +
\r
(this.client.ekMaster ? '<td>Degrée d\'ostentation</td>\
\r
<td>\
\r