X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fticker.js;h=0bc767e85a265517f08ca63e18b8b0567e76c46c;hb=312a6acc00ec7f331ab461894c319776eec95cae;hp=fe8a096116fadf0bb2246498ce6739937317c218;hpb=ba124be15839e2a62fa793b70869e0209f8daf90;p=brisk.git diff --git a/web/ticker.js b/web/ticker.js index fe8a096..0bc767e 100644 --- a/web/ticker.js +++ b/web/ticker.js @@ -1,7 +1,7 @@ /* * brisk - ticker.js * - * Copyright (C) 2006-2008 Matteo Nastasi + * Copyright (C) 2006-2011 Matteo Nastasi * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it @@ -19,8 +19,6 @@ * not, write to the Free Software Foundation, Inc, 59 Temple Place - * Suite 330, Boston, MA 02111-1307, USA. * - * $Id$ - * */ function train(anc) { @@ -78,6 +76,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 +337,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 +358,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);