From: Matteo Nastasi (mop) Date: Fri, 21 Aug 2009 07:17:11 +0000 (+0000) Subject: ticker management for isolation mode X-Git-Tag: 3.0.0~28 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=e64958a99f3de9eb6f3657e70830c9001042a0b5;p=brisk.git ticker management for isolation mode --- 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);