X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fticker.js;h=b18bfa94c786c0ec5020bba3c0052d1b8b6e7918;hb=HEAD;hp=0bc767e85a265517f08ca63e18b8b0567e76c46c;hpb=fa82ba0deaaab26b5b9efe37c392a34cbec50a66;p=brisk.git diff --git a/web/ticker.js b/web/ticker.js index 0bc767e..b18bfa9 100644 --- a/web/ticker.js +++ b/web/ticker.js @@ -1,7 +1,7 @@ /* * brisk - ticker.js * - * Copyright (C) 2006-2011 Matteo Nastasi + * Copyright (C) 2006-2012 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -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; @@ -338,7 +345,7 @@ function wagon(anc, table, title) { addEvent(this.box, "click", function() { this.anc.cb_click(); } ); - if (g_listen & l_list_isol && table >= g_tables_auth_n) { + if (g_prefs.listen & l_list_isol && table >= g_tables_auth_n) { this.box.style.visibility = "hidden"; } this.anc.box.appendChild(box);