REPORT de la branche 1.0 290 à 293
[euphorik.git] / js / euphorik.js
index e564583..0f1eb39 100755 (executable)
@@ -29,6 +29,7 @@
   * Normalement 'const' à la place de 'var' mais non supporté par IE7.
   */
 var conf = {
+   nickDefaut : "<nick>",
    nbMessageAffiche : 40, // (par page)
    pseudoDefaut : "<nick>",
    tempsAffichageMessageDialogue : 4000, // en ms
@@ -681,7 +682,7 @@ Client.prototype.getJSONConversations = function()
 {
    var conversations = new Array()
    for (var i = 0; i < this.conversations.length; i++)
-      conversations.push({ "root" : this.conversations[i].root, "page" : this.conversations[i].page})
+      conversations.push(this.conversations[i].root)
    return conversations
 }
 
@@ -849,6 +850,8 @@ Client.prototype.chargerDonnees = function(data)
       
       // les conversations
       this.conversations = data["conversations"]
+      for (var i = 0; i < this.conversations.length; i++)
+         this.conversations[i] = {root : this.conversations[i], page : 1}
       
       this.majBulle()
       this.majCssSelectionee()
@@ -1078,10 +1081,9 @@ PageEvent.prototype.waitEvent = function(funSend, funsReceive)
    this.attenteCourante = jQuery.ajax({
       type: "POST",
       url: "request",
-      dataType: "json",\r
-      timeout: 300000, // timeout de 5min. Gros HACK pas beau. FIXME problème décrit ici : http://groups.google.com/group/jquery-en/browse_thread/thread/8724e64af3333a76
+      dataType: "json",
       // Obsolète (voir TODO)
-      //timeout: 300000, // timeout de 5min. Gros HACK pas beau. FIXME problème décrit ici : http://groups.google.com/group/jquery-en/browse_thread/thread/8724e64af3333a76
+      timeout: 180000, // timeout de 3min. Gros HACK pas beau. FIXME problème décrit ici : http://groups.google.com/group/jquery-en/browse_thread/thread/8724e64af3333a76
       data: this.util.jsonVersAction(dataToSend),
       success:
          function(data)