X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2FpageMinichat.js;h=ec0a9243de61b0e12b1dffcc465255a3d80c4afe;hp=c46b82ddfa077b7f07341c8aa922a090832f8e4e;hb=381311fe4154f5fb09212cd1fd9dc6b9668cf89e;hpb=c7e6a315b29ccdf5fba11d372c2f7ed71297b6e4 diff --git a/js/pageMinichat.js b/js/pageMinichat.js index c46b82d..ec0a924 100755 --- a/js/pageMinichat.js +++ b/js/pageMinichat.js @@ -364,9 +364,9 @@ Message.prototype.getConversation = function(messages) function Conversation(num, util, formateur, client) { var thisConversation = this - + this.num = num // peut changer au cours de la vie de la conversation - this.id = Math.random() * 100000000000000000 + this.id = Math.floor(Math.random() * 1000000).toString(36) this.messageOver = null // le message sur lequel se trouve le curseur this.util = util this.formateur = formateur @@ -969,7 +969,7 @@ Messages.prototype.rafraichirMessages = function(vider) // ajoute les messages reçus à leur conversation respective for (var numConv = 0; numConv < data["conversations"].length; numConv++) { - if (! thisMessages.ajouterMessages(data["conversations"][numConv], numConv)) + if (!thisMessages.ajouterMessages(data["conversations"][numConv], numConv)) { thisMessages.util.messageDialogue("La conversation {" + thisMessages.client.conversations[numConv -1].root.toString(36) + "} n'existe pas") thisMessages.client.supprimerConversation(numConv - 1)