X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Feuphorik.js;h=64c9379109e45ac64ce8749958bf7a4fcc3c6ff8;hp=b2024ad1ae0be4c8b9ba1f14f0e81b3d97bcaf89;hb=8bede29111bde3481ed8b3d6637c241c8d241544;hpb=b7547c3be18fe564cf3e06f2a589c7cc1d78ec33 diff --git a/js/euphorik.js b/js/euphorik.js index b2024ad..64c9379 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -682,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 } @@ -850,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() @@ -1079,8 +1081,7 @@ 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 data: this.util.jsonVersAction(dataToSend),