projects
/
euphorik.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dcc7f52
)
FIX the nick was setted to nul when an unregistered user was sending a message
author
Greg Burri
<greg.burri@gmail.com>
Sat, 28 Mar 2009 09:48:26 +0000
(09:48 +0000)
committer
Greg Burri
<greg.burri@gmail.com>
Sat, 28 Mar 2009 09:48:26 +0000
(09:48 +0000)
js/pageMinichat/pageMinichat.js
patch
|
blob
|
history
diff --git
a/js/pageMinichat/pageMinichat.js
b/js/pageMinichat/pageMinichat.js
index
b71efea
..
b40f568
100755
(executable)
--- a/
js/pageMinichat/pageMinichat.js
+++ b/
js/pageMinichat/pageMinichat.js
@@
-245,8
+245,6
@@
euphorik.PageMinichat.prototype.envoyerMessage = function(message) {
return;
}
return;
}
- this.client.pseudo = pseudo;
-
if (!this.client.authentifie()) {
if (!this.client.enregistrement()) {
this.util.messageDialogue("login impossible");
if (!this.client.authentifie()) {
if (!this.client.enregistrement()) {
this.util.messageDialogue("login impossible");
@@
-261,9
+259,11
@@
euphorik.PageMinichat.prototype.envoyerMessage = function(message) {
}
this.envoieMessageEnCours = true;
}
this.envoieMessageEnCours = true;
+ this.client.pseudo = pseudo;
+
this.communication.requete(
"put_message",
this.communication.requete(
"put_message",
- this.getJSONMessage(pseudo, message),
+ this.getJSONMessage(
this.client.
pseudo, message),
function() {
$("form#posterMessage input.message").val("");
thisPageMinichat.conversations.enleverMessagesRepond();
function() {
$("form#posterMessage input.message").val("");
thisPageMinichat.conversations.enleverMessagesRepond();