Removed old chat-code

pull/1464/head
mluto 2013-02-07 11:15:16 +01:00
parent e78879c300
commit 6e8dcee650
1 changed files with 1 additions and 11 deletions

View File

@ -501,7 +501,6 @@ var pad = {
padeditor.init(postAceInit, pad.padOptions.view || {}, this); padeditor.init(postAceInit, pad.padOptions.view || {}, this);
paduserlist.init(pad.myUserInfo, this); paduserlist.init(pad.myUserInfo, this);
// padchat.init(clientVars.chatHistory, pad.myUserInfo);
padconnectionstatus.init(); padconnectionstatus.init();
padmodals.init(this); padmodals.init(this);
@ -540,7 +539,7 @@ var pad = {
$('#options-stickychat').prop("checked", true); // set the checkbox to on $('#options-stickychat').prop("checked", true); // set the checkbox to on
} }
if(padcookie.getPref("showAuthorshipColors") == false){ if(padcookie.getPref("showAuthorshipColors") == false){
pad.changeViewOption('showAuthorColors', false); pad.changeViewOption('showAuthorColors', false);
} }
hooks.aCallAll("postAceInit", {ace: padeditor.ace}); hooks.aCallAll("postAceInit", {ace: padeditor.ace});
} }
@ -553,13 +552,11 @@ var pad = {
{ {
pad.myUserInfo.name = newName; pad.myUserInfo.name = newName;
pad.collabClient.updateUserInfo(pad.myUserInfo); pad.collabClient.updateUserInfo(pad.myUserInfo);
//padchat.handleUserJoinOrUpdate(pad.myUserInfo);
}, },
notifyChangeColor: function(newColorId) notifyChangeColor: function(newColorId)
{ {
pad.myUserInfo.colorId = newColorId; pad.myUserInfo.colorId = newColorId;
pad.collabClient.updateUserInfo(pad.myUserInfo); pad.collabClient.updateUserInfo(pad.myUserInfo);
//padchat.handleUserJoinOrUpdate(pad.myUserInfo);
}, },
notifyChangeTitle: function(newTitle) notifyChangeTitle: function(newTitle)
{ {
@ -643,17 +640,14 @@ var pad = {
handleUserJoin: function(userInfo) handleUserJoin: function(userInfo)
{ {
paduserlist.userJoinOrUpdate(userInfo); paduserlist.userJoinOrUpdate(userInfo);
//padchat.handleUserJoinOrUpdate(userInfo);
}, },
handleUserUpdate: function(userInfo) handleUserUpdate: function(userInfo)
{ {
paduserlist.userJoinOrUpdate(userInfo); paduserlist.userJoinOrUpdate(userInfo);
//padchat.handleUserJoinOrUpdate(userInfo);
}, },
handleUserLeave: function(userInfo) handleUserLeave: function(userInfo)
{ {
paduserlist.userLeave(userInfo); paduserlist.userLeave(userInfo);
//padchat.handleUserLeave(userInfo);
}, },
handleClientMessage: function(msg) handleClientMessage: function(msg)
{ {
@ -665,10 +659,6 @@ var pad = {
paduserlist.setMyUserInfo(pad.myUserInfo); paduserlist.setMyUserInfo(pad.myUserInfo);
} }
} }
else if (msg.type == 'chat')
{
//padchat.receiveChat(msg);
}
else if (msg.type == 'padtitle') else if (msg.type == 'padtitle')
{ {
paddocbar.changeTitle(msg.title); paddocbar.changeTitle(msg.title);