[Vtigercrm-commits] [vtiger-commits] r6968 - /vtigercrm/trunk/modules/Users/listroles.html
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Jun 8 01:14:42 EDT 2006
Author: saraj
Date: Wed Jun 7 23:14:38 2006
New Revision: 6968
Log:
ajax functionality has been modified
Modified:
vtigercrm/trunk/modules/Users/listroles.html
Modified: vtigercrm/trunk/modules/Users/listroles.html
==============================================================================
--- vtigercrm/trunk/modules/Users/listroles.html (original)
+++ vtigercrm/trunk/modules/Users/listroles.html Wed Jun 7 23:14:38 2006
@@ -115,18 +115,18 @@
x.display="none";
}
-function ajaxSaveResponse(response)
-{
- document.getElementById("tempdiv").innerHTML=response.responseText;
-}
-
function DeleteRole(roleid)
{
- //show("an_busy");
- var ajaxObj = new VtigerAjax(ajaxSaveResponse);
- var urlstring = "module=Users&action=UsersAjax&file=RoleDeleteStep1&roleid="+roleid;
- ajaxObj.process("index.php?",urlstring);
+ new Ajax.Request(
+ 'index.php',
+ {queue: {position: 'end', scope: 'command'},
+ method: 'post',
+ postBody: "module=Users&action=UsersAjax&file=RoleDeleteStep1&roleid="+roleid,
+ onComplete: function(response) {
+ $("tempdiv").innerHTML=response.responseText;
+ }
+ }
+ );
}
-
</script>
<!-- END: main -->
More information about the vtigercrm-commits
mailing list