changed behavior of ticker
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Mon, 21 Apr 2008 08:44:05 +0000 (08:44 +0000)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Mon, 21 Apr 2008 08:44:05 +0000 (08:44 +0000)
web/ticker.js

index 980261d..e4362ff 100644 (file)
@@ -53,15 +53,17 @@ train.prototype = {
     deltas: 5,
     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();
@@ -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()