From 0da541a6bc8a81ef9986a2cbf385750aa6f2eca9 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Tue, 15 Mar 2011 08:55:14 +0100 Subject: [PATCH] ticker management refactored --- web/ticker.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/web/ticker.js b/web/ticker.js index 0bc767e..5269608 100644 --- a/web/ticker.js +++ b/web/ticker.js @@ -51,7 +51,7 @@ train.prototype = { deltas: 10, xend: 0, timout: null, - clickable: true, + clickable: false, show: function() { @@ -60,6 +60,9 @@ train.prototype = { this.clickable = true; this.box.style.visibility = "visible"; + for (cur = this.first ; cur != null ; cur = cur.next) { + cur.box.style.borderColor = "green green green green"; + } }, hide: function() @@ -68,10 +71,13 @@ train.prototype = { $('tickbut').style.width = "20px"; this.clickable = false; + this.box.style.visibility = "visible"; + for (cur = this.first ; cur != null ; cur = cur.next) { if (cur.notebox != null) { cur.cb_mouseout(); } + cur.box.style.borderColor = "gray gray gray gray"; } }, @@ -265,7 +271,6 @@ train.prototype = { resetx: function() { this.deltas = 10; - this.clickable = true; this.box.style.left = this.anc.offsetWidth+"px"; }, @@ -327,6 +332,8 @@ function wagon(anc, table, title) { box = document.createElement("div"); box.className = "wagon"; box.anc = this; + if (anc.clickable == false) + box.style.borderColor = "gray gray gray gray"; this.table = table; this.title = title; box.innerHTML = "Tavolo "+table; -- 2.17.1