X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2FpageMinichat.js;h=aea8e2d273a3bece26d2f7e4b29668db7a6ee366;hp=abcb72bb7288e7880ba91f711418505767f7d200;hb=4696f876c2a6e33619bf688138262fe9d85540f0;hpb=5dc140390551c133ac5525725a86854ca69679af diff --git a/js/pageMinichat.js b/js/pageMinichat.js index abcb72b..aea8e2d 100755 --- a/js/pageMinichat.js +++ b/js/pageMinichat.js @@ -242,8 +242,6 @@ euphorik.PageMinichat.prototype.envoyerMessage = function(message) { return; } - this.client.nick = nick; - if (!this.client.authentifie()) { if (!this.client.enregistrement()) { this.util.messageDialog("login impossible"); @@ -258,6 +256,8 @@ euphorik.PageMinichat.prototype.envoyerMessage = function(message) { } this.envoieMessageEnCours = true; + this.client.nick = nick; + this.communication.requete( "put_message", this.getJSONMessage(nick, message),