* properly check to see if user has turned on wholist-in-iconbar
[citadel.git] / webcit / static / wclib.js
index 09cb0f242ca6fd309617dfca79c09196dbb716fd..0f32b4e80f59518ed58673b19228d4573ca2fd14 100644 (file)
@@ -144,8 +144,7 @@ function setupIconBar() {
     }
   }
   var online_users = document.getElementById("online_users");
-  var ou_displayAs = online_users.style.display;
-  if (ou_displayAs != "none") {
+  if (online_users.offsetParent != null) {
     new Ajax.PeriodicalUpdater('online_users', 'do_template?template=wholist_section', {method: 'get', frequency: 30});
   }
 }