[Vtigercrm-commits] [vtiger-commits] r6920 - /vtigercrm/trunk/Smarty/templates/UserProfile.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 7 05:18:10 EDT 2006
Author: saraj
Date: Wed Jun 7 03:18:07 2006
New Revision: 6920
Log:
ajax functionality has been modified
Modified:
vtigercrm/trunk/Smarty/templates/UserProfile.tpl
Modified: vtigercrm/trunk/Smarty/templates/UserProfile.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/UserProfile.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/UserProfile.tpl Wed Jun 7 03:18:07 2006
@@ -76,18 +76,20 @@
</table>
<div id="tempdiv" style="display:block;position:absolute;left:350px;top:200px;"></div>
<script>
-function ajaxSaveResponse(response)
-{ldelim}
- hide("status");
- document.getElementById("tempdiv").innerHTML=response.responseText;
-{rdelim}
-
function DeleteProfile(profileid)
{ldelim}
- show("status");
- var ajaxObj = new VtigerAjax(ajaxSaveResponse);
- var urlstring = "module=Users&action=UsersAjax&file=ProfileDeleteStep1&profileid="+profileid;
- 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&file=ProfileDeleteStep1&profileid='+profileid,
+ onComplete: function(response) {ldelim}
+ $("status").style.display="none";
+ $("tempdiv").innerHTML=response.responseText;
+ {rdelim}
+ {rdelim}
+ );
{rdelim}
</script>
{include file='SettingsSubMenu.tpl'}
More information about the vtigercrm-commits
mailing list