X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Feuphorik.js;h=0f1eb39c1151777a3132ea6ccec48ad9cda6aeb6;hp=e5645833de5026b9809d8a4d7fa202426dfb45ae;hb=9ca81343a4899d1d6080e88f5c9870d10706ce1b;hpb=650c44a784cabc8a1f2bd1daa7e5e61ccf74ca6f diff --git a/js/euphorik.js b/js/euphorik.js index e564583..0f1eb39 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -29,6 +29,7 @@ * Normalement 'const' à la place de 'var' mais non supporté par IE7. */ var conf = { + nickDefaut : "", nbMessageAffiche : 40, // (par page) pseudoDefaut : "", 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", - 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)