[Vtigercrm-commits] [vtiger-commits] r6935 - /vtigercrm/trunk/Smarty/templates/Settings/ModuleOwners.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 7 07:44:43 EDT 2006
Author: saraj
Date: Wed Jun 7 05:44:39 2006
New Revision: 6935
Log:
ajax functionality has been modified
Modified:
vtigercrm/trunk/Smarty/templates/Settings/ModuleOwners.tpl
Modified: vtigercrm/trunk/Smarty/templates/Settings/ModuleOwners.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Settings/ModuleOwners.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Settings/ModuleOwners.tpl Wed Jun 7 05:44:39 2006
@@ -11,13 +11,6 @@
-->*}
<script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
<script language="JavaScript" type="text/javascript" src="include/js/ajax.js"></script>
-<script language="javascript">
-function ajaxmoduleresponse(response)
-{ldelim}
- hide("status");
- document.getElementById("module_list_owner").innerHTML=response.responseText;
-{rdelim}
-</script>
<style type="text/css">@import url(themes/blue/style.css);</style>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
@@ -52,17 +45,24 @@
<script>
function assignmodulefn(mode)
{
- show('status');
- var ajaxObj = new VtigerAjax(ajaxmoduleresponse);
+ $("status").style.display="inline";
var urlstring ='';
for(i = 0;i < document.support_owners.elements.length;i++)
{
if(document.support_owners.elements[i].name != 'button')
urlstring +='&'+document.support_owners.elements[i].name+'='+document.support_owners.elements[i].value;
}
-
- urlstring +='&list_module_mode='+mode+'&file_mode=ajax';
- ajaxObj.process("index.php?",urlstring);
+ new Ajax.Request(
+ 'index.php',
+ {queue: {position: 'end', scope: 'command'},
+ method: 'post',
+ postBody: urlstring+'&list_module_mode='+mode+'&file_mode=ajax',
+ onComplete: function(response) {
+ $("status").style.display="none";
+ $("module_list_owner").innerHTML=response.responseText;
+ }
+ }
+ );
}
</script>
{/literal}
More information about the vtigercrm-commits
mailing list