[Vtigercrm-commits] [vtiger-commits] r6967 - /vtigercrm/trunk/include/js/Mail.js

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Jun 8 01:12:12 EDT 2006


Author: saraj
Date: Wed Jun  7 23:12:08 2006
New Revision: 6967

Log:
ajax functionality has been modified

Modified:
    vtigercrm/trunk/include/js/Mail.js

Modified: vtigercrm/trunk/include/js/Mail.js
==============================================================================
--- vtigercrm/trunk/include/js/Mail.js (original)
+++ vtigercrm/trunk/include/js/Mail.js Wed Jun  7 23:12:08 2006
@@ -146,12 +146,16 @@
 }
 function sendmail(module,idstrings)
 {
-	var ajaxObj = new VtigerAjax(ajaxSendmailResponse);
-	var urlstring ="module=Emails&return_module="+module+"&action=EmailsAjax&file=mailSelect&idlist="+idstrings;
-	ajaxObj.process("index.php?",urlstring);
+        new Ajax.Request(
+                'index.php',
+                {queue: {position: 'end', scope: 'command'},
+                        method: 'post',
+                        postBody: "module=Emails&return_module="+module+"&action=EmailsAjax&file=mailSelect&idlist="+idstrings,
+                        onComplete: function(response) {
+                                        getObj('sendmail_cont').innerHTML=response.responseText;
+                        }
+                }
+        );
 }
-function ajaxSendmailResponse(response)
-{
-	getObj('sendmail_cont').innerHTML=response.responseText;
-}
+
 	





More information about the vtigercrm-commits mailing list