From e64958a99f3de9eb6f3657e70830c9001042a0b5 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Fri, 21 Aug 2009 07:17:11 +0000 Subject: [PATCH] ticker management for isolation mode --- web/ticker.js | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/web/ticker.js b/web/ticker.js index fe8a096..8c057bb 100644 --- a/web/ticker.js +++ b/web/ticker.js @@ -78,6 +78,24 @@ train.prototype = { }, + hide_noauth: function() + { + for (cur = this.first ; cur != null ; cur = cur.next) { + if (cur.table >= g_tables_auth_n) { + cur.hide(); + } + } + }, + + show_noauth: function() + { + for (cur = this.first ; cur != null ; cur = cur.next) { + if (cur.table >= g_tables_auth_n) { + cur.show(); + } + } + }, + add: function(table, title) { var last, wag, curx; @@ -321,6 +339,10 @@ function wagon(anc, table, title) { addEvent(this.box, "mouseout", function() { this.anc.cb_mouseout(); } ); addEvent(this.box, "click", function() { this.anc.cb_click(); } ); + + if (g_listen & l_list_isol && table >= g_tables_auth_n) { + this.box.style.visibility = "hidden"; + } this.anc.box.appendChild(box); this.w = this.widthbox_get(); @@ -338,6 +360,17 @@ wagon.prototype = { box: null, shut_step: 0, + show: function() + { + this.box.style.visibility = "visible"; + }, + + hide: function() + { + this.box.style.visibility = "hidden"; + }, + + width_get: function() { return (this.w); -- 2.17.1