projects
/
euphorik.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
REPORT de la branche 1.0 290 à 293
[euphorik.git]
/
js
/
euphorik.js
diff --git
a/js/euphorik.js
b/js/euphorik.js
index
e564583
..
0f1eb39
100755
(executable)
--- 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 = {
* 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
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++)
{
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
}
return conversations
}
@@
-849,6
+850,8
@@
Client.prototype.chargerDonnees = function(data)
// les conversations
this.conversations = data["conversations"]
// 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()
this.majBulle()
this.majCssSelectionee()
@@
-1078,10
+1081,9
@@
PageEvent.prototype.waitEvent = function(funSend, funsReceive)
this.attenteCourante = jQuery.ajax({
type: "POST",
url: "request",
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)
// Obsolète (voir TODO)
-
//timeout: 300000, // timeout de 5
min. 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 3
min. 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)
data: this.util.jsonVersAction(dataToSend),
success:
function(data)