chat reset in user class
[brisk.git] / web / ticker.js
index 980261d..8c73c1a 100644 (file)
@@ -49,19 +49,21 @@ train.prototype = {
     box: null,
     notebox: null,
     width: 0,
-    deltat: 100,
-    deltas: 5,
+    deltat: 250,
+    deltas: 12,
     xend: 0,
     timout: null,
+    clickable: true,
 
     show: function()
     {
+        this.clickable = true;
         this.box.style.visibility = "visible";
     },
 
     hide: function()
     {
-        this.box.style.visibility = "hidden";
+        this.clickable = false;
         for (cur = this.first ; cur != null ; cur = cur.next) {
             if (cur.notebox != null) {
                 cur.cb_mouseout();
@@ -195,7 +197,7 @@ train.prototype = {
                 wag.box.innerHTML = "";
                 wag.shut_step = 2;
             }
-           curw = wag.widthbox_get() - 4;
+           curw = wag.widthbox_get() - 10;
             wag.w = curw + 2; // 2 for border pixels
             if (curw <= 0) {
                 obj.box.removeChild(wag.box);
@@ -209,7 +211,7 @@ train.prototype = {
             }
         }
         this.redraw();
-        setTimeout(function(){ arguments[0][0].shut_wagon(arguments[0]);  }, 100, [ obj, wag ]);
+        setTimeout(function(){ arguments[0][0].shut_wagon(arguments[0]);  }, 250, [ obj, wag ]);
     },
 
     redraw: function()
@@ -361,7 +363,9 @@ wagon.prototype = {
 
     cb_click: function()
     { 
-        act_sitdown(this.table); 
+        if (this.anc.clickable == true) {
+            act_sitdown(this.table);
+        }
     },
 
     cb_mouseover: function()