euphorik.Conversations.prototype.mettreAJourFragment = function() {\r
conv = [];\r
for(var i = 1; i < this.conversations.length; i++) {\r
- conv.push(this.conversations[i].racine.id)\r
+ conv.push(this.conversations[i].racine.id);\r
}\r
this.fragment.setVal("conv", conv);\r
this.fragment.write();\r
-}\r
+};\r
\r
/**\r
* Enlève tous les messages auquel l'utilisateur souhaite répondre.\r
};\r
\r
euphorik.Conversations.prototype.getJSONConversations = function() {\r
- var thisConversations = this\r
+ var thisConversations = this;\r
var clientConv = [];\r
\r
this.client.conversations.each(function(i, conv) {\r
conv.idDernierMessageAffiche = 0;\r
});\r
}\r
+
+ thisConversations.util.showWaitBar(); // pour faire patienter le user :)
\r
this.comet.waitEvent(\r
function() { return thisConversations.getJSONrafraichirMessages(); },\r
$("#trollCourant .troll a[@rel*=lightbox]").lightBox();\r
},\r
"new_messages" :\r
- function(data) {\r
+ function(data) {
+ \r
if (vider) {\r
thisConversations.viderMessages();\r
}\r
thisConversations.afficherMessagesRepondConversations();\r
}\r
\r
- vider = false;\r
+ vider = false;
+
+ thisConversations.util.hideWaitBar();\r
}\r
}\r
);\r