Peter Alberer
Server based chat with an html and ajax client.
2019-03-01
@@ -22,7 +22,7 @@
0
-
+
Index: openacs-4/packages/chat/catalog/chat.de_DE.ISO-8859-1.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat/catalog/chat.de_DE.ISO-8859-1.xml,v
diff -u -r1.6.2.3 -r1.6.2.4
--- openacs-4/packages/chat/catalog/chat.de_DE.ISO-8859-1.xml 27 Mar 2019 10:29:39 -0000 1.6.2.3
+++ openacs-4/packages/chat/catalog/chat.de_DE.ISO-8859-1.xml 25 Mar 2020 13:12:37 -0000 1.6.2.4
@@ -3,7 +3,7 @@
Aktionen
Aktiv
- Aktive Benutzer
+ Aktive Benutzer/innen
Moderator hinzuf�gen
Benutzer hinzuf�gen
Ajax
Index: openacs-4/packages/chat/www/chat.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat/www/chat.adp,v
diff -u -r1.2.2.1 -r1.2.2.2
--- openacs-4/packages/chat/www/chat.adp 14 Feb 2019 16:15:01 -0000 1.2.2.1
+++ openacs-4/packages/chat/www/chat.adp 25 Mar 2020 13:12:37 -0000 1.2.2.2
@@ -4,6 +4,9 @@
ichat_form.msg
@doc.title@
+
+#chat.active_users#:
+
#chat.Log_off#
#chat.Transcript#
Index: openacs-4/packages/xowiki/www/resources/chat-common.js
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/Attic/chat-common.js,v
diff -u -r1.10.2.4 -r1.10.2.5
--- openacs-4/packages/xowiki/www/resources/chat-common.js 7 Mar 2019 12:57:47 -0000 1.10.2.4
+++ openacs-4/packages/xowiki/www/resources/chat-common.js 25 Mar 2020 13:12:37 -0000 1.10.2.5
@@ -39,5 +39,12 @@
renderMessage(json);
} else if (json.type == "users") {
renderUsers(json);
+ if (document.getElementById('active_users') !== null) {
+ var active_users = document.getElementById('xowiki-chat-users').getElementsByClassName('xowiki-chat-user-block').length;
+ if (active_users == 0) {
+ active_users = 1
+ }
+ document.getElementById('active_users').textContent = active_users;
+ }
}
}