typo, old name of xhr stream fixed
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Tue, 14 Oct 2014 06:07:36 +0000 (08:07 +0200)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Tue, 14 Oct 2014 06:07:36 +0000 (08:07 +0200)
web/commons.js

index 1563ec8..36eb7c4 100644 (file)
@@ -469,7 +469,7 @@ function postact_logout()
 {
     // alert("postact_logout");
     try { 
-       hstm.abort();
+       xstm.abort();
     } catch (e) {}
 
     // eraseCookie("sess");
@@ -1111,8 +1111,10 @@ function readCookie(name) {
        var ca = document.cookie.split(';');
        for(var i=0;i < ca.length;i++) {
                var c = ca[i];
-               while (c.charAt(0)==' ') c = c.substring(1,c.length);
-               if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
+               while (c.charAt(0)==' ')
+                    c = c.substring(1,c.length);
+               if (c.indexOf(nameEQ) == 0)
+                    return c.substring(nameEQ.length,c.length);
        }
        return null;
 }
@@ -1127,8 +1129,8 @@ function onbeforeunload_cb () {
 
 function onunload_cb () {
     
-    if (typeof(hstm) != "undefined")
-        hstm.the_end = true; 
+    if (typeof(xstm) != "undefined")
+        xstm.the_end = true;
 
     act_shutdown();