[Vtigercrm-commits] [vtiger-commits] r7915 - in /branches/VTIGERCRM-5.0.2-MMBRICH: include/js/objects/CommSystem.js modules/CommSystem/CommSystemAjax.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Sun Jul 9 16:43:47 EDT 2006


Author: mmbrich
Date: Sun Jul  9 14:43:46 2006
New Revision: 7915

Log:
misc fixes for comm syste

Modified:
    branches/VTIGERCRM-5.0.2-MMBRICH/include/js/objects/CommSystem.js
    branches/VTIGERCRM-5.0.2-MMBRICH/modules/CommSystem/CommSystemAjax.php

Modified: branches/VTIGERCRM-5.0.2-MMBRICH/include/js/objects/CommSystem.js
==============================================================================
--- branches/VTIGERCRM-5.0.2-MMBRICH/include/js/objects/CommSystem.js (original)
+++ branches/VTIGERCRM-5.0.2-MMBRICH/include/js/objects/CommSystem.js Sun Jul  9 14:43:46 2006
@@ -219,8 +219,8 @@
 				var main_table = Builder.node(
 					'table', 
 					{
-						cellpadding:'2',cellspacing:'0',border:'0',className:clsname,
-						id:'msgwindow_'+msg.sending_user
+						name:msg.sending_user,cellpadding:'2',cellspacing:'0',border:'0',
+						className:clsname,id:'msgwindow_'+msg.sending_user
 					}
 				);
 				var top_bar = Builder.node(
@@ -301,8 +301,7 @@
 				main_table.style.display = "none";
 				$("comm_sys").appendChild(main_table);
 
-				try {
-				    Try.these (
+				Try.these (
 					function() {
 						if(msg.msg_data != "")
 							$("chat_data_"+msg.sending_user).innerHTML = "<br><font color='red'>"+msg.user_name+"</font> ("+msg.timestamp+"): "+msg.msg_data;
@@ -310,7 +309,8 @@
 					function() {
 						$("chat_data_"+msg.sending_user).innerHTML += "<br>"+msg.msg_data;
 					}
-				    );
+				);
+				try {
 					$("msg_wrapper_"+msg.sending_user).innerHTML += '<input type="submit" class="button" value="'+globalCommSystem.SendValue+'" id="send_button_'+msg.sending_user+'" name="'+msg.sending_user+'">';
 					Event.observe($("msg_input_"+msg.sending_user), 'keypress', globalCommSystem.UserTyping.bindAsEventListener(this));
 					Event.observe($("send_button_"+msg.sending_user), 'click', globalCommSystem.SendMsg.bindAsEventListener(this));

Modified: branches/VTIGERCRM-5.0.2-MMBRICH/modules/CommSystem/CommSystemAjax.php
==============================================================================
--- branches/VTIGERCRM-5.0.2-MMBRICH/modules/CommSystem/CommSystemAjax.php (original)
+++ branches/VTIGERCRM-5.0.2-MMBRICH/modules/CommSystem/CommSystemAjax.php Sun Jul  9 14:43:46 2006
@@ -114,12 +114,6 @@
 	$adb->query($q);
 	echo "success";
 }
-
-function check_email() {
-	require_once("modules/CommSystem/CommSystem.php");
-	$commSys = new CommSystem();
-	echo $commSys->CheckEmails();
-}
 function send_typing_message($receivers) {
 	require_once("modules/CommSystem/CommSystem.php");
 	global $adb;





More information about the vtigercrm-commits mailing list