}
}
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});
}
}
}
function changeIconBar(target) {
var switchTo = target.ctdlSwitchIconBarTo;
- if (!!window.console) {
- console.log("Changing to: " + switchTo);
- }
+ WCLog("Changing to: " + switchTo);
ctdlLocalPrefs.setPref("iconbar_view", target.ctdlSwitchIconBarTo);
if (switchTo == "rooms") {
switch_to_room_list();
}
}
-
-
-
// Functions which handle show/hide of various elements in the recurrence editor
function RecurrenceShowHide() {
function launchChat(event) {
window.open('chat', 'ctdl_chat_window', 'toolbar=no,location=no,directories=no,copyhistory=no,status=no,scrollbars=yes,resizable=yes');
}
+// logger
+function WCLog(msg) {
+ if (!!window.console && !!console.log) {
+ console.log(msg);
+ } else if (!!window.opera && !!opera.postError) {
+ opera.postError(msg);
+ }
+}