projects
/
euphorik.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ADD trois mode d'affichage pour les pseudos
[euphorik.git]
/
js
/
euphorik.js
diff --git
a/js/euphorik.js
b/js/euphorik.js
index
d7ef712
..
27ec5bb
100755
(executable)
--- a/
js/euphorik.js
+++ b/
js/euphorik.js
@@
-415,6
+415,7
@@
Client.prototype.resetDonneesPersonnelles = function()
this.password = ""
\r
this.email = ""
\r
this.css = jQuery("link#cssPrincipale").attr("href")
this.password = ""
\r
this.email = ""
\r
this.css = jQuery("link#cssPrincipale").attr("href")
+ this.nickFormat = "nick"
this.pagePrincipale = 1
this.pagePrincipale = 1
@@
-550,6
+551,7
@@
Client.prototype.getJSONProfile = function()
"nick" : this.pseudo,
"email" : this.email,
"css" : this.css,
"nick" : this.pseudo,
"email" : this.email,
"css" : this.css,
+ "nick_format" : this.nickFormat,
"main_page" : this.pagePrincipale < 1 ? 1 : this.pagePrincipale,
"conversations" : this.getJSONConversations()
}
"main_page" : this.pagePrincipale < 1 ? 1 : this.pagePrincipale,
"conversations" : this.getJSONConversations()
}
@@
-660,7
+662,8
@@
Client.prototype.connexion = function(messageJson)
}
\r
\r
Client.prototype.deconnexion = function()
\r
}
\r
\r
Client.prototype.deconnexion = function()
\r
-{
\r
+{
+ this.flush()
\r
this.setStatut(statutType.deconnected) // deconnexion
\r
this.resetDonneesPersonnelles()
\r
this.delCookie ()
\r
this.setStatut(statutType.deconnected) // deconnexion
\r
this.resetDonneesPersonnelles()
\r
this.delCookie ()
\r
@@
-681,6
+684,7
@@
Client.prototype.chargerDonnees = function(data)
this.pseudo = data["nick"]
\r
this.email = data["email"]
\r
this.css = data["css"]
this.pseudo = data["nick"]
\r
this.email = data["email"]
\r
this.css = data["css"]
+ this.nickFormat = data["nick_format"]
// la page de la conversation principale
this.pagePrincipale = data["main_page"] == undefined ? 1 : data["main_page"]
// la page de la conversation principale
this.pagePrincipale = data["main_page"] == undefined ? 1 : data["main_page"]