[Vtigercrm-commits] [vtiger-commits] r6914 - /vtigercrm/trunk/Smarty/templates/ImportStep2.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 7 02:07:19 EDT 2006
Author: saraj
Date: Wed Jun 7 00:07:15 2006
New Revision: 6914
Log:
ajax functionality has been modified
Modified:
vtigercrm/trunk/Smarty/templates/ImportStep2.tpl
Modified: vtigercrm/trunk/Smarty/templates/ImportStep2.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/ImportStep2.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/ImportStep2.tpl Wed Jun 7 00:07:15 2006
@@ -17,19 +17,17 @@
function getImportSavedMap(impoptions)
{ldelim}
- //show('status');
- var ajaxObj = new VtigerAjax(ajaxImportSavedMapResponse);
var mapping = impoptions.options[impoptions.options.selectedIndex].value;
- var urlstring = "module=Import&mapping="+mapping+"&action=ImportAjax";
- ajaxObj.process("index.php",urlstring);
-
-{rdelim}
-
-function ajaxImportSavedMapResponse(response)
-{ldelim}
- //hide('status');
- document.getElementById('importmapform').innerHTML = response.responseText;
-
+ new Ajax.Request(
+ 'index.php',
+ {ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim},
+ method: 'post',
+ postBody: 'module=Import&mapping='+mapping+'&action=ImportAjax',
+ onComplete: function(response) {ldelim}
+ $("importmapform").innerHTML = response.responseText;
+ {rdelim}
+ {rdelim}
+ );
{rdelim}
</script>
More information about the vtigercrm-commits
mailing list