Index: lams_tool_chat/web/includes/javascript/learning.js
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_chat/web/includes/javascript/learning.js,v
diff -u -r1.3 -r1.4
--- lams_tool_chat/web/includes/javascript/learning.js 6 Nov 2006 00:26:05 -0000 1.3
+++ lams_tool_chat/web/includes/javascript/learning.js 23 Nov 2006 04:35:20 -0000 1.4
@@ -19,7 +19,7 @@
str = str.replace(//g, ">");
str = str.replace(/\"/g, """);
- str = str.replace(/\n/g, "
");
+ str = str.replace(/\n/g, "
");
return str;
}
function createElem(name, attrs, style, text) {
@@ -84,7 +84,7 @@
}
// change the name on the 'Send To' label
- if (MODE == "teacher" && !(this.currentIndex === null)) {
+ if (MODE == "moderator" && !(this.currentIndex === null)) {
var user = this.users[this.currentIndex];
var sendToUserElem = document.getElementById("sendToUser");
sendToUserElem.innerHTML = "";
@@ -110,7 +110,7 @@
}
var roster = new Roster();
function selectUser(userDiv) {
- if (MODE == "teacher") {
+ if (MODE == "moderator") {
var newIndex = userDiv.id.substring(userDiv.id.indexOf("-") + 1, userDiv.id.length);
if (roster.currentIndex == newIndex) {
roster.currentIndex = null;
@@ -139,7 +139,7 @@
return false; // do not send empty messages.
}
var aMsg = new JSJaCMessage();
- if (MODE == "teacher" && !(roster.currentIndex === null)) {
+ if (MODE == "moderator" && !(roster.currentIndex === null)) {
var toNick = roster.users[roster.currentIndex].nick;
aMsg.setTo(CONFERENCEROOM + "/" + toNick);
aMsg.setType("chat");
@@ -163,7 +163,7 @@
}
/* ******* Event Handlers ******* */
function handleEvent(aJSJaCPacket) {
- document.getElementById("iResp").innerHTML += "IN (raw):
" + htmlEnc(aJSJaCPacket.xml()) + "