FIX#64
[euphorik.git] / js / comet.js
index e06f518..8c427c9 100644 (file)
@@ -98,7 +98,7 @@ Comet.prototype.waitEvent = function(funSend, funsReceive) {
       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\r
       data: { action : JSON.stringify(dataToSend) },\r
       success:\r
-         function(data) {          \r
+         function(data) {\r
             funsReceive[data.reply](data);\r
          \r
             // rappel de la fonction dans 100 ms\r
@@ -106,7 +106,7 @@ Comet.prototype.waitEvent = function(funSend, funsReceive) {
          },\r
       error:\r
          function(XMLHttpRequest, textStatus, errorThrown) {\r
-            ;; console.log("Connexion perdue dans PageEvent.prototype.waitEvent()");\r
+            ;; console.log("Connexion perdue dans Comet.prototype.waitEvent() : \n" + textStatus);\r
             setTimeout(function(){ thisComet.waitEvent2(funSend, funsReceive); }, 1000);\r
          }\r
    });\r