[Vtigercrm-commits] [vtiger-commits] r6916 - /vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 7 02:10:11 EDT 2006


Author: saraj
Date: Wed Jun  7 00:10:07 2006
New Revision: 6916

Log:
ajax functionality has been modified

Modified:
    vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl

Modified: vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl Wed Jun  7 00:10:07 2006
@@ -222,18 +222,21 @@
 </table>
 <div id="tempdiv" style="display:block;position:absolute;left:225px;top:150px;"></div>
 <script>
-function ajaxSaveResponse(response)
-{ldelim}
-	hide("status");
-	document.getElementById("tempdiv").innerHTML=response.responseText;
-{rdelim}
 
 function callEditDiv(modulename,mode,id)
 {ldelim}
-	show("status");
-	var ajaxObj = new VtigerAjax(ajaxSaveResponse);
-	var urlstring = "module=Users&action=UsersAjax&orgajax=true&mode="+mode+"&sharing_module="+modulename+"&shareid="+id;
-	ajaxObj.process("index.php?",urlstring);
+	$("status").style.display="inline";
+	new Ajax.Request(
+		'index.php',
+		{ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim},
+			method: 'post',
+			postBody: 'module=Users&action=UsersAjax&orgajax=true&mode='+mode+'&sharing_module='+modulename+'&shareid='+id,
+			onComplete: function(response) {ldelim}
+				$("status").style.display="none";
+				$("tempdiv").innerHTML=response.responseText;
+			{rdelim}
+		{rdelim}
+	);
 {rdelim}
 
 function fnwriteRules(module,related)





More information about the vtigercrm-commits mailing list