[Vtigercrm-commits] [vtiger-commits] r6729 - in /vtigercrm/trunk: Smarty/templates/ Smarty/templates/Inventory/ Smarty/templates/Settings/ include/js/ modules/Activities/ modules/Calendar/ modules/Contacts/js/ modules/Emails/ modules/Faq/ modules/Migration/ModifyDatabase/ modules/Portal/ modules/Users/

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon May 29 19:28:24 EDT 2006


Author: mmbrich
Date: Mon May 29 17:28:17 2006
New Revision: 6729

Log:
This renames function Ajax() to function VtigerAjax() and tries to find any files that had a call to Ajax and change appropriately.
Since this is all done in one check-in it should be nice and easy to back out if I broke anything.

Closes # 1117


Modified:
    vtigercrm/trunk/Smarty/templates/CreateProfile.tpl
    vtigercrm/trunk/Smarty/templates/CreateView.tpl
    vtigercrm/trunk/Smarty/templates/CurrencyListView.tpl
    vtigercrm/trunk/Smarty/templates/CustomFieldList.tpl
    vtigercrm/trunk/Smarty/templates/DetailView.tpl
    vtigercrm/trunk/Smarty/templates/Emails.tpl
    vtigercrm/trunk/Smarty/templates/GroupEditView.tpl
    vtigercrm/trunk/Smarty/templates/Header.tpl
    vtigercrm/trunk/Smarty/templates/ImportStep2.tpl
    vtigercrm/trunk/Smarty/templates/Inventory/InventoryCreateView.tpl
    vtigercrm/trunk/Smarty/templates/Inventory/InventoryDetailView.tpl
    vtigercrm/trunk/Smarty/templates/Inventory/InventoryEditView.tpl
    vtigercrm/trunk/Smarty/templates/ListRoles.tpl
    vtigercrm/trunk/Smarty/templates/ListView.tpl
    vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl
    vtigercrm/trunk/Smarty/templates/Popup.tpl
    vtigercrm/trunk/Smarty/templates/ReportRun.tpl
    vtigercrm/trunk/Smarty/templates/Reports.tpl
    vtigercrm/trunk/Smarty/templates/RoleEditView.tpl
    vtigercrm/trunk/Smarty/templates/Rss.tpl
    vtigercrm/trunk/Smarty/templates/Settings/Announcements.tpl
    vtigercrm/trunk/Smarty/templates/Settings/EmailNotification.tpl
    vtigercrm/trunk/Smarty/templates/Settings/InventoryNotify.tpl
    vtigercrm/trunk/Smarty/templates/Settings/ModuleOwners.tpl
    vtigercrm/trunk/Smarty/templates/Settings/PickList.tpl
    vtigercrm/trunk/Smarty/templates/UserEditView.tpl
    vtigercrm/trunk/Smarty/templates/UserListView.tpl
    vtigercrm/trunk/Smarty/templates/UserProfile.tpl
    vtigercrm/trunk/Smarty/templates/salesEditView.tpl
    vtigercrm/trunk/include/js/ListView.js
    vtigercrm/trunk/include/js/Mail.js
    vtigercrm/trunk/include/js/ajax.js
    vtigercrm/trunk/include/js/dtlviewajax.js
    vtigercrm/trunk/modules/Activities/Activity.js
    vtigercrm/trunk/modules/Calendar/script.js
    vtigercrm/trunk/modules/Contacts/js/chat.js
    vtigercrm/trunk/modules/Emails/Email.js
    vtigercrm/trunk/modules/Faq/Faq.js
    vtigercrm/trunk/modules/Migration/ModifyDatabase/42P2_to_50Alpha.php
    vtigercrm/trunk/modules/Portal/Portal.js
    vtigercrm/trunk/modules/Users/listroles.html

Modified: vtigercrm/trunk/Smarty/templates/CreateProfile.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/CreateProfile.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/CreateProfile.tpl Mon May 29 17:28:17 2006
@@ -93,7 +93,7 @@
 
 function dup_validation(profilename)
 {ldelim}
-        var ajaxObj = new Ajax(ajaxSaveResponse);
+        var ajaxObj = new VtigerAjax(ajaxSaveResponse);
         var urlstring ="module=Users&action=UsersAjax&file=CreateProfile1&ajax=true&dup_check=true&profile_name="+profilename;
 
         ajaxObj.process("index.php?",urlstring);

Modified: vtigercrm/trunk/Smarty/templates/CreateView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/CreateView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/CreateView.tpl Mon May 29 17:28:17 2006
@@ -35,7 +35,7 @@
         if(Ticker!='')
         {ldelim}
                 show('vtbusy_info');
-                var ajaxObj = new Ajax(ajaxResponse);
+                var ajaxObj = new VtigerAjax(ajaxResponse);
                 //var Ticker = document.getElementById('tickersymbol').value;
                 var urlstring = "module={$MODULE}&action=Tickerdetail&tickersymbol="+Ticker;
                 ajaxObj.process("index.php?",urlstring);

Modified: vtigercrm/trunk/Smarty/templates/CurrencyListView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/CurrencyListView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/CurrencyListView.tpl Mon May 29 17:28:17 2006
@@ -16,7 +16,7 @@
 	function deleteCurrency(currid)
 	{
         	show("status");
-	        var ajaxObj = new Ajax(ajaxCurrencyDeleteResponse);
+	        var ajaxObj = new VtigerAjax(ajaxCurrencyDeleteResponse);
         	var urlstring = "action=SettingsAjax&file=CurrencyDeleteStep1&return_action=CurrencyListView&return_module=Settings&module=Settings&parenttab=Settings&id="+currid;
 	        ajaxObj.process("index.php?",urlstring);
 	}
@@ -31,7 +31,7 @@
 	{
                 show("status");
                 hide("CurrencyDeleteLay");
-                var ajaxObj = new Ajax(ajaxCurrencySaveResponse);
+                var ajaxObj = new VtigerAjax(ajaxCurrencySaveResponse);
                 var trans_currencyid=document.getElementById('transfer_currency_id').options[document.getElementById('transfer_currency_id').options.selectedIndex].value;
                 var urlstring ="module=Settings&action=SettingsAjax&file=CurrencyDelete&ajax=true&delete_currency_id="+del_currencyid+"&transfer_currency_id="+trans_currencyid;
                 ajaxObj.process("index.php?",urlstring);

Modified: vtigercrm/trunk/Smarty/templates/CustomFieldList.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/CustomFieldList.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/CustomFieldList.tpl Mon May 29 17:28:17 2006
@@ -16,7 +16,7 @@
 {rdelim}
 function getCustomFieldList(customField)
 {ldelim}
-	var ajaxObj = new Ajax(ajaxSaveResponse);
+	var ajaxObj = new VtigerAjax(ajaxSaveResponse);
 	var modulename = customField.options[customField.options.selectedIndex].value;
 	var urlstring ="module=Settings&action=SettingsAjax&file=CustomFieldList&fld_module="+modulename+"&parenttab=Settings&ajax=true";
 	ajaxObj.process("index.php?",urlstring);
@@ -37,7 +37,7 @@
 {rdelim}
 function getCreateCustomFieldForm(customField,id,tabid,ui)
 {ldelim}
-        var ajaxObj = new Ajax(ajaxCFSaveResponse);
+        var ajaxObj = new VtigerAjax(ajaxCFSaveResponse);
         var modulename = customField;
         var urlstring ="module=Settings&action=SettingsAjax&file=CreateCustomField&fld_module="+modulename+"&parenttab=Settings&ajax=true&fieldid="+id+"&tabid="+tabid+"&uitype="+ui;
         ajaxObj.process("index.php?",urlstring);

Modified: vtigercrm/trunk/Smarty/templates/DetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/DetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/DetailView.tpl Mon May 29 17:28:17 2006
@@ -28,7 +28,7 @@
 
 function callConvertLeadDiv(id)
 {ldelim}
-        var ajaxObj = new Ajax(ajaxSaveResponse);
+        var ajaxObj = new VtigerAjax(ajaxSaveResponse);
         var urlstring = "module=Leads&action=LeadsAjax&file=ConvertLead&record="+id;
         ajaxObj.process("index.php?",urlstring);
 {rdelim}
@@ -313,7 +313,7 @@
 
 <script>
 var data = "module={$MODULE}&action={$MODULE}Ajax&file=TagCloud&ajxaction=GETTAGCLOUD";
-var ajaxObj = new Ajax(ajaxTagCloudResp);
+var ajaxObj = new VtigerAjax(ajaxTagCloudResp);
 ajaxObj.process("index.php?",data);
 function ajaxTagCloudResp(response)
 {ldelim}

Modified: vtigercrm/trunk/Smarty/templates/Emails.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Emails.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Emails.tpl Mon May 29 17:28:17 2006
@@ -37,7 +37,7 @@
 		getObj(prev_selected_rowid).className = 'prvPrfHoverOff';
 	{rdelim}
 	gselectedrowid = id;
-	var ajaxObj = new Ajax(ajaxgetResponse);
+	var ajaxObj = new VtigerAjax(ajaxgetResponse);
 	var urlstring ="module=Emails&action=EmailsAjax&file=DetailView&mode=ajax&record="+id;
 	ajaxObj.process("index.php?",urlstring);
 {rdelim}
@@ -58,12 +58,12 @@
 	show("status");
 	if(gFolderid != folderid)
 	{ldelim}	
-    	var ajaxObj = new Ajax(ajaxSaveResponse);
+    	var ajaxObj = new VtigerAjax(ajaxSaveResponse);
 		gselectedrowid = 0;
 	{rdelim}
 	else
 	{ldelim}
-		var ajaxObj = new Ajax(ajaxDelResponse);
+		var ajaxObj = new VtigerAjax(ajaxDelResponse);
 	{rdelim}
 	gFolderid = folderid;
 	getObj('search_text').value = '';
@@ -93,7 +93,7 @@
 function getListViewEntries_js(module,url)
 {ldelim}
 		show("status");
-        var ajaxObj = new Ajax(ajaxSaveResponse);
+        var ajaxObj = new VtigerAjax(ajaxSaveResponse);
         var urlstring ="module="+module+"&action="+module+"Ajax&file=ListView&ajax=true&"+url;
         ajaxObj.process("index.php?",urlstring);
 

Modified: vtigercrm/trunk/Smarty/templates/GroupEditView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/GroupEditView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/GroupEditView.tpl Mon May 29 17:28:17 2006
@@ -16,7 +16,7 @@
 function dup_validation()
 {ldelim}
         //show("status");
-        var ajaxObj = new Ajax(ajaxSaveResponse);
+        var ajaxObj = new VtigerAjax(ajaxSaveResponse);
         var groupname = document.getElementById('groupName').value;
         var mode = getObj('mode').value;
         var groupid = getObj('groupId').value;

Modified: vtigercrm/trunk/Smarty/templates/Header.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Header.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Header.tpl Mon May 29 17:28:17 2006
@@ -146,7 +146,7 @@
 <script>
 function fetch_clock()
 {ldelim}
-	var ajaxObj = new Ajax(ajaxClockResponse);
+	var ajaxObj = new VtigerAjax(ajaxClockResponse);
 	var urlstring = "module=Utilities&action=UtilitiesAjax&file=Clock";
 	ajaxObj.process("index.php?",urlstring);
 
@@ -158,7 +158,7 @@
 {rdelim}
 function fetch_calc()
 {ldelim}
-	var ajaxObj = new Ajax(ajaxCalcResponse);
+	var ajaxObj = new VtigerAjax(ajaxCalcResponse);
 	var urlstring = "module=Utilities&action=UtilitiesAjax&file=Calculator";
 	ajaxObj.process("index.php?",urlstring);
 
@@ -172,7 +172,7 @@
 
 function Announcement_rss()
 {ldelim}
-	var ajaxObj = new Ajax(ajaxRssResponse);
+	var ajaxObj = new VtigerAjax(ajaxRssResponse);
 	var urlstring = "module=Users&action=UsersAjax&announce_rss=yes";
 		ajaxObj.process("index.php?",urlstring);
 
@@ -190,7 +190,7 @@
 function QCreate(qcoptions)
 {ldelim}
         show("status");
-        var ajaxObj = new Ajax(ajaxQCreateResponse);
+        var ajaxObj = new VtigerAjax(ajaxQCreateResponse);
         var module = qcoptions.options[qcoptions.options.selectedIndex].value;
 	if(module == 'Events')
                 var urlstring = "module=Activities&action=ActivitiesAjax&file=QuickCreate&activity_mode=Events";

Modified: vtigercrm/trunk/Smarty/templates/ImportStep2.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/ImportStep2.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/ImportStep2.tpl Mon May 29 17:28:17 2006
@@ -18,7 +18,7 @@
 function getImportSavedMap(impoptions)
 {ldelim}
 	//show('status');
-	var ajaxObj = new Ajax(ajaxImportSavedMapResponse);
+	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);

Modified: vtigercrm/trunk/Smarty/templates/Inventory/InventoryCreateView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Inventory/InventoryCreateView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Inventory/InventoryCreateView.tpl Mon May 29 17:28:17 2006
@@ -35,7 +35,7 @@
         if(Ticker!='')
         {ldelim}
                 show('vtbusy_info');
-                var ajaxObj = new Ajax(ajaxResponse);
+                var ajaxObj = new VtigerAjax(ajaxResponse);
                 //var Ticker = document.getElementById('tickersymbol').value;
                 var urlstring = "module={$MODULE}&action=Tickerdetail&tickersymbol="+Ticker;
                 ajaxObj.process("index.php?",urlstring);

Modified: vtigercrm/trunk/Smarty/templates/Inventory/InventoryDetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Inventory/InventoryDetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Inventory/InventoryDetailView.tpl Mon May 29 17:28:17 2006
@@ -232,7 +232,7 @@
 
 <script>
 	var data = "module={$MODULE}&action={$MODULE}Ajax&ajxaction=GETTAGCLOUD&file=TagCloud";
-	var ajaxObj = new Ajax(ajaxTagCloudResp);
+	var ajaxObj = new VtigerAjax(ajaxTagCloudResp);
 	ajaxObj.process("index.php?",data);
 	function ajaxTagCloudResp(response)
 	{ldelim}

Modified: vtigercrm/trunk/Smarty/templates/Inventory/InventoryEditView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Inventory/InventoryEditView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Inventory/InventoryEditView.tpl Mon May 29 17:28:17 2006
@@ -34,7 +34,7 @@
         if(Ticker!='')
         {ldelim}
                 show('vtbusy_info');
-                var ajaxObj = new Ajax(ajaxResponse);
+                var ajaxObj = new VtigerAjax(ajaxResponse);
                 //var Ticker = document.getElementById('tickersymbol').value;
                 var urlstring = "module={$MODULE}&action=Tickerdetail&tickersymbol="+Ticker;
                 ajaxObj.process("index.php?",urlstring);

Modified: vtigercrm/trunk/Smarty/templates/ListRoles.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/ListRoles.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/ListRoles.tpl Mon May 29 17:28:17 2006
@@ -167,7 +167,7 @@
 			{ldelim}
 				childId = childId.replace(/user_/gi,'');
 				parentId = parentId.replace(/user_/gi,'');
-        			var ajaxObj = new Ajax(ajaxSaveResponse);
+        			var ajaxObj = new VtigerAjax(ajaxSaveResponse);
 				
                 		var urlstring ="module=Users&action=UsersAjax&file=RoleDragDrop&ajax=true&parentId="+parentId+"&childId="+childId;
         			ajaxObj.process("index.php?",urlstring);

Modified: vtigercrm/trunk/Smarty/templates/ListView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/ListView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/ListView.tpl Mon May 29 17:28:17 2006
@@ -34,7 +34,7 @@
 {ldelim}
 	search_fld_val= document.basicSearch.search_field[document.basicSearch.search_field.selectedIndex].value;
         search_txt_val=document.basicSearch.search_text.value;
-        var ajaxObj = new Ajax(ajaxSaveResponse);
+        var ajaxObj = new VtigerAjax(ajaxSaveResponse);
         var urlstring = '';
         if(searchtype == 'Basic')
         {ldelim}
@@ -73,7 +73,7 @@
         {rdelim}
         getObj(dataid).className = 'searchAlphselected';
         show("status");
-        var ajaxObj = new Ajax(ajaxSaveResponse);
+        var ajaxObj = new VtigerAjax(ajaxSaveResponse);
         var urlstring ="module="+module+"&action="+module+"Ajax&file=index&ajax=true&"+url;
         ajaxObj.process("index.php?",urlstring);
 
@@ -400,7 +400,7 @@
 function ajaxChangeStatus(statusname)
 {
 	show("status");
-	var ajaxObj = new Ajax(ajaxSaveResponse);
+	var ajaxObj = new VtigerAjax(ajaxSaveResponse);
 	var viewid = document.massdelete.viewname.value;
 	var idstring = document.massdelete.idlist.value;
 	if(statusname == 'status')

Modified: vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl Mon May 29 17:28:17 2006
@@ -231,7 +231,7 @@
 function callEditDiv(modulename,mode,id)
 {ldelim}
 	show("status");
-	var ajaxObj = new Ajax(ajaxSaveResponse);
+	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);
 {rdelim}

Modified: vtigercrm/trunk/Smarty/templates/Popup.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Popup.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Popup.tpl Mon May 29 17:28:17 2006
@@ -85,7 +85,7 @@
     {rdelim}
 	search_fld_val= document.basicSearch.search_field[document.basicSearch.search_field.selectedIndex].value;
     search_txt_val=document.basicSearch.search_text.value;
-    var ajaxObj = new Ajax(ajaxSaveResponse);
+    var ajaxObj = new VtigerAjax(ajaxSaveResponse);
     var urlstring = '';
     if(searchtype == 'Basic')
     {ldelim}
@@ -105,7 +105,7 @@
 	getObj(data_td_id).className = 'searchAlph';
     {rdelim}
     getObj(dataid).className = 'searchAlphselected';
-    var ajaxObj = new Ajax(ajaxSaveResponse);
+    var ajaxObj = new VtigerAjax(ajaxSaveResponse);
     var urlstring ="module="+module+"&action="+module+"Ajax&file=Popup&ajax=true&"+url;
     urlstring +=gethiddenelements();
     ajaxObj.process("index.php?",urlstring);
@@ -130,7 +130,7 @@
 {rdelim}
 function getListViewEntries_js(module,url)
 {ldelim}
-        var ajaxObj = new Ajax(ajaxSaveResponse);
+        var ajaxObj = new VtigerAjax(ajaxSaveResponse);
 	popuptype = document.getElementById('popup_type').value;
         var urlstring ="module="+module+"&action="+module+"Ajax&popuptype="+popuptype+"&file=Popup&ajax=true&"+url;
     	urlstring +=gethiddenelements();

Modified: vtigercrm/trunk/Smarty/templates/ReportRun.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/ReportRun.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/ReportRun.tpl Mon May 29 17:28:17 2006
@@ -127,7 +127,7 @@
     Calendar.setup ({inputField : "jscal_field_date_end", ifFormat : "%Y-%m-%d", showsTime : false, button : "jscal_trigger_date_end", singleClick : true, step : 1});
 function generateReport(id)
 {
-	var ajaxObj = new Ajax(ajaxgenReportResp);
+	var ajaxObj = new VtigerAjax(ajaxgenReportResp);
 	var stdDateFilterFieldvalue = document.NewReport.stdDateFilterField.options  [document.NewReport.stdDateFilterField.selectedIndex].value;
 	var stdDateFiltervalue = document.NewReport.stdDateFilter.options[document.NewReport.stdDateFilter.selectedIndex].value;
 	var startdatevalue = document.NewReport.startdate.value;

Modified: vtigercrm/trunk/Smarty/templates/Reports.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Reports.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Reports.tpl Mon May 29 17:28:17 2006
@@ -121,7 +121,7 @@
 	var fldr_name = getObj(title).innerHTML;
 	if(confirm("Are you sure you want to delete the folder  "+fldr_name +" ?"))
 	{
-		var ajaxObj = new Ajax(ajaxDelFolderResp);
+		var ajaxObj = new VtigerAjax(ajaxDelFolderResp);
 		url ='action=ReportsAjax&mode=ajax&file=DeleteReportFolder&module=Reports&record='+id;
 		ajaxObj.process("index.php?",url);
 	}
@@ -140,7 +140,7 @@
 	else
 	{
 		fninvsh('orgLay');
-		var ajaxObj = new Ajax(ajaxDelFolderResp);
+		var ajaxObj = new VtigerAjax(ajaxDelFolderResp);
 		var foldername = getObj('folder_name').value;
 		var folderdesc = getObj('folder_desc').value;
 		getObj('folder_name').value = '';
@@ -207,7 +207,7 @@
 	{
 		if(confirm("Are you sure you want to delete the selected "+count+" reports ?"))
         {
-			var ajaxObj = new Ajax(ajaxDelFolderResp);
+			var ajaxObj = new VtigerAjax(ajaxDelFolderResp);
 			url ='action=ReportsAjax&mode=ajax&file=Delete&module=Reports&idlist='+idstring;
 			ajaxObj.process("index.php?",url);
 		}else
@@ -225,7 +225,7 @@
 {
 	if(confirm("Are you sure you want to delete this report ?"))
 	{
-		var ajaxObj = new Ajax(ajaxDelReportResp);
+		var ajaxObj = new VtigerAjax(ajaxDelReportResp);
 		url ='action=ReportsAjax&file=Delete&module=Reports&record='+id;
 		ajaxObj.process("index.php?",url);
 	}else
@@ -277,7 +277,7 @@
 	{
 		if(confirm("Are you sure you want to move this report to "+foldername+" folder ?"))
         {
-			var ajaxObj = new Ajax(ajaxDelReportResp);
+			var ajaxObj = new VtigerAjax(ajaxDelReportResp);
 			url ='action=ReportsAjax&file=ChangeFolder&module=Reports&folderid='+id+'&idlist='+idstring;
 			ajaxObj.process("index.php?",url);
 		}else

Modified: vtigercrm/trunk/Smarty/templates/RoleEditView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/RoleEditView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/RoleEditView.tpl Mon May 29 17:28:17 2006
@@ -14,7 +14,7 @@
 function dup_validation()
 {ldelim}
 	//show("status");
-	var ajaxObj = new Ajax(ajaxSaveResponse);
+	var ajaxObj = new VtigerAjax(ajaxSaveResponse);
 	var rolename = document.getElementById('rolename').value;
 	var mode = getObj('mode').value;
 	var roleid = getObj('roleid').value;

Modified: vtigercrm/trunk/Smarty/templates/Rss.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Rss.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Rss.tpl Mon May 29 17:28:17 2006
@@ -24,7 +24,7 @@
 function GetRssFeedList(id)
 {
 	show('status');	
-	var ajaxObj = new Ajax(ajaxRssFeedResponse);
+	var ajaxObj = new VtigerAjax(ajaxRssFeedResponse);
 	var urlstring = 'module=Rss&action=RssAjax&vtigerfile=ListView&directmode=ajax&record='+id;
 	ajaxObj.process("index.php?",urlstring);
 }
@@ -42,7 +42,7 @@
 		show('status');	
 		var feed = 'feed_'+id;
 		document.getElementById(feed).parentNode.removeChild(document.getElementById(feed));
-		var ajaxObj = new Ajax(ajaxRssFeedResponse);
+		var ajaxObj = new VtigerAjax(ajaxRssFeedResponse);
 		var urlstring = 'module=Rss&return_module=Rss&action=RssAjax&vtigerfile=Delete&directmode=ajax&record='+id;
 		ajaxObj.process("index.php?",urlstring);
 	}
@@ -51,7 +51,7 @@
 function SaveRssFeeds()
 {
 	show('status');	
-	var ajaxObj = new Ajax(ajaxRssSaveResponse);
+	var ajaxObj = new VtigerAjax(ajaxRssSaveResponse);
 	rssurl = document.getElementById('rssurl').value;
 	rssurl = rssurl.replace(/&/gi,"##amp##");
 	var category = document.getElementById('rsscategory')[document.getElementById('rsscategory').selectedIndex].value;
@@ -200,14 +200,14 @@
 	if(id != '')
 	{ldelim}
 		show('status');	
-		var ajaxObj = new Ajax(ajaxSetDefault);
+		var ajaxObj = new VtigerAjax(ajaxSetDefault);
 		var urlstring = 'module=Rss&action=RssAjax&vtigerfile=Popup&directmode=ajax&record='+id;
 		ajaxObj.process("index.php?",urlstring);
 	{rdelim}
 {rdelim}
 function getrssfolders()
 {ldelim}
-	var ajaxObj = new Ajax(ajaxrssfolders);
+	var ajaxObj = new VtigerAjax(ajaxrssfolders);
 	var urlstring = 'module=Rss&action=RssAjax&vtigerfile=ListView&folders=true';
 	ajaxObj.process("index.php?",urlstring);
 {rdelim}

Modified: vtigercrm/trunk/Smarty/templates/Settings/Announcements.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Settings/Announcements.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Settings/Announcements.tpl Mon May 29 17:28:17 2006
@@ -20,7 +20,7 @@
 function Announcement()
 {
 	show("an_busy");
-	var ajaxObj = new Ajax(ajaxSaveResponse);
+	var ajaxObj = new VtigerAjax(ajaxSaveResponse);
 	var announcement=document.getElementById("announcement").value;
 	//var title=document.getElementById("title_announce").value;
 	var urlstring = "module=Users&action=UsersAjax&announcement="+announcement+"&announce_save=yes";

Modified: vtigercrm/trunk/Smarty/templates/Settings/EmailNotification.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Settings/EmailNotification.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Settings/EmailNotification.tpl Mon May 29 17:28:17 2006
@@ -48,7 +48,7 @@
 {
 	hide('editdiv');
 	show('status');
-	var ajaxObj = new Ajax(ajaxsavenotifyresponse);
+	var ajaxObj = new VtigerAjax(ajaxsavenotifyresponse);
 	var active = document.getElementById("notify_status").options[document.getElementById("notify_status").options.selectedIndex].value;
 	var subject = document.getElementById("notifysubject").value;
 	var body = document.getElementById("notifybody").value;
@@ -64,7 +64,7 @@
 function fetchEditNotify(id)
 {
 	show('status');
-	var ajaxObj = new Ajax(ajaxnotifyresponse);
+	var ajaxObj = new VtigerAjax(ajaxnotifyresponse);
 	urlstring ='action=UsersAjax&module=Users&file=EditNotification&record='+id;
 	ajaxObj.process("index.php?",urlstring);
 }

Modified: vtigercrm/trunk/Smarty/templates/Settings/InventoryNotify.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Settings/InventoryNotify.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Settings/InventoryNotify.tpl Mon May 29 17:28:17 2006
@@ -48,7 +48,7 @@
 {
 	hide('editdiv');
 	show('status');
-	var ajaxObj = new Ajax(ajaxsavenotifyresponse);
+	var ajaxObj = new VtigerAjax(ajaxsavenotifyresponse);
 	var subject = document.getElementById("notifysubject").value;
 	var body = document.getElementById("notifybody").value;
 	urlstring ='action=UsersAjax&module=Users&file=SaveInventoryNotification&notifysubject='+subject+'&notifybody='+body+'&record='+id;
@@ -63,7 +63,7 @@
 function fetchEditNotify(id)
 {
 	show('status');
-	var ajaxObj = new Ajax(ajaxnotifyresponse);
+	var ajaxObj = new VtigerAjax(ajaxnotifyresponse);
 	urlstring ='action=UsersAjax&module=Users&file=EditInventoryNotification&record='+id;
 	ajaxObj.process("index.php?",urlstring);
 }

Modified: vtigercrm/trunk/Smarty/templates/Settings/ModuleOwners.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Settings/ModuleOwners.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Settings/ModuleOwners.tpl Mon May 29 17:28:17 2006
@@ -53,7 +53,7 @@
 function assignmodulefn(mode)
 {
 	show('status');
-	var ajaxObj = new Ajax(ajaxmoduleresponse);
+	var ajaxObj = new VtigerAjax(ajaxmoduleresponse);
 	var urlstring ='';
 	for(i = 0;i < document.support_owners.elements.length;i++)
 	{

Modified: vtigercrm/trunk/Smarty/templates/Settings/PickList.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Settings/PickList.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Settings/PickList.tpl Mon May 29 17:28:17 2006
@@ -169,7 +169,7 @@
 {
 	show('status');
 	Effect.Puff(document.getElementById('editdiv'),{duration:2});
-	var ajaxObj = new Ajax(ajachangeresponse);
+	var ajaxObj = new VtigerAjax(ajachangeresponse);
 	var body = document.getElementById("picklist_values").value;
 	urlstring ='action=SettingsAjax&module=Settings&directmode=ajax&file=UpdateComboValues&table_name='+fieldname+'&fld_module='+module+'&listarea='+body;
 	ajaxObj.process("index.php?",urlstring);
@@ -177,7 +177,7 @@
 function changeModule(pickmodule)
 {
 	show('status');
-	var ajaxObj = new Ajax(ajachangeresponse);
+	var ajaxObj = new VtigerAjax(ajachangeresponse);
 	var module=pickmodule.options[pickmodule.options.selectedIndex].value;
 	urlstring ='action=SettingsAjax&module=Settings&directmode=ajax&file=PickList&fld_module='+module;
 	ajaxObj.process("index.php?",urlstring);
@@ -185,7 +185,7 @@
 function fetchEditPickList(module,fieldname)
 {
 	show('status');
-	var ajaxObj = new Ajax(ajaxnotifyresponse);
+	var ajaxObj = new VtigerAjax(ajaxnotifyresponse);
 	urlstring ='action=SettingsAjax&module=Settings&mode=edit&file=EditComboField&fld_module='+module+'&fieldname='+fieldname;
 	ajaxObj.process("index.php?",urlstring);
 }

Modified: vtigercrm/trunk/Smarty/templates/UserEditView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/UserEditView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/UserEditView.tpl Mon May 29 17:28:17 2006
@@ -32,7 +32,7 @@
 function check_duplicate()
 {ldelim}
 
-        var ajaxObj = new Ajax(ajaxSaveUserResponse);
+        var ajaxObj = new VtigerAjax(ajaxSaveUserResponse);
         var user_name = document.getElementById('user_name').value;
 
         var urlstring ="module=Users&action=UsersAjax&file=Save&ajax=true&dup_check=true&userName="+user_name;

Modified: vtigercrm/trunk/Smarty/templates/UserListView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/UserListView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/UserListView.tpl Mon May 29 17:28:17 2006
@@ -66,7 +66,7 @@
 function getListViewEntries_js(module,url)
 {
 		show("status");
-		var ajaxObj = new Ajax(ajaxSaveResponse);
+		var ajaxObj = new VtigerAjax(ajaxSaveResponse);
 		var urlstring ="module=Users&action=UsersAjax&file=ListView&ajax=true&"+url;
 	    ajaxObj.process("index.php?",urlstring);
 
@@ -80,7 +80,7 @@
 function deleteUser(userid)
 {
 	show("status");
-	var ajaxObj = new Ajax(ajaxDeleteResponse);
+	var ajaxObj = new VtigerAjax(ajaxDeleteResponse);
 	var urlstring = "action=UsersAjax&file=UserDeleteStep1&return_action=ListView&return_module=Users&module=Users&parenttab=Settings&record="+userid;
 	ajaxObj.process("index.php?",urlstring);
 
@@ -96,7 +96,7 @@
 {
 		show("status");
 		hide("DeleteLay");
-		var ajaxObj = new Ajax(ajaxSaveResponse);
+		var ajaxObj = new VtigerAjax(ajaxSaveResponse);
 		var trans_userid=document.getElementById('transfer_user_id').options[document.getElementById('transfer_user_id').options.selectedIndex].value;
 		var urlstring ="module=Users&action=UsersAjax&file=DeleteUser&ajax=true&delete_user_id="+del_userid+"&transfer_user_id="+trans_userid;
 	    	ajaxObj.process("index.php?",urlstring);

Modified: vtigercrm/trunk/Smarty/templates/UserProfile.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/UserProfile.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/UserProfile.tpl Mon May 29 17:28:17 2006
@@ -85,7 +85,7 @@
 function DeleteProfile(profileid)
 {ldelim}
 	show("status");
-	var ajaxObj = new Ajax(ajaxSaveResponse);
+	var ajaxObj = new VtigerAjax(ajaxSaveResponse);
 	var urlstring = "module=Users&action=UsersAjax&file=ProfileDeleteStep1&profileid="+profileid;
 	ajaxObj.process("index.php?",urlstring);
 {rdelim}

Modified: vtigercrm/trunk/Smarty/templates/salesEditView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/salesEditView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/salesEditView.tpl Mon May 29 17:28:17 2006
@@ -34,7 +34,7 @@
         if(Ticker!='')
         {ldelim}
                 show('vtbusy_info');
-                var ajaxObj = new Ajax(ajaxResponse);
+                var ajaxObj = new VtigerAjax(ajaxResponse);
                 //var Ticker = document.getElementById('tickersymbol').value;
                 var urlstring = "module={$MODULE}&action=Tickerdetail&tickersymbol="+Ticker;
                 ajaxObj.process("index.php?",urlstring);

Modified: vtigercrm/trunk/include/js/ListView.js
==============================================================================
--- vtigercrm/trunk/include/js/ListView.js (original)
+++ vtigercrm/trunk/include/js/ListView.js Mon May 29 17:28:17 2006
@@ -93,7 +93,7 @@
 		if(confirm("Are you sure you want to delete the selected "+xx+" records ?"))
 		{
 			show("status");
-			var ajaxObj = new Ajax(ajaxSaveResponse);
+			var ajaxObj = new VtigerAjax(ajaxSaveResponse);
 			var urlstring ="module=Users&action=massdelete&return_module="+module+"&viewname="+viewid+"&idlist="+idstring;
 	    	ajaxObj.process("index.php?",urlstring);
 		}
@@ -108,7 +108,7 @@
 {
 
 		show("status");
-		var ajaxObj = new Ajax(ajaxSaveResponse);
+		var ajaxObj = new VtigerAjax(ajaxSaveResponse);
 		var viewName = selectView.options[selectView.options.selectedIndex].value;
 		var urlstring ="module="+module+"&action="+module+"Ajax&file=ListView&ajax=true&start=1&viewname="+viewName;
 	    ajaxObj.process("index.php?",urlstring);
@@ -118,7 +118,7 @@
 function getListViewEntries_js(module,url)
 {
         show("status");
-        var ajaxObj = new Ajax(ajaxSaveResponse);
+        var ajaxObj = new VtigerAjax(ajaxSaveResponse);
         var urlstring ="module="+module+"&action="+module+"Ajax&file=index&ajax=true&"+url;
 	if(document.getElementById('search_url').value!='')
         	urlstring = urlstring+document.getElementById('search_url').value;

Modified: vtigercrm/trunk/include/js/Mail.js
==============================================================================
--- vtigercrm/trunk/include/js/Mail.js (original)
+++ vtigercrm/trunk/include/js/Mail.js Mon May 29 17:28:17 2006
@@ -146,7 +146,7 @@
 }
 function sendmail(module,idstrings)
 {
-	var ajaxObj = new Ajax(ajaxSendmailResponse);
+	var ajaxObj = new VtigerAjax(ajaxSendmailResponse);
 	var urlstring ="module=Emails&return_module="+module+"&action=EmailsAjax&file=mailSelect&idlist="+idstrings;
 	ajaxObj.process("index.php?",urlstring);
 }

Modified: vtigercrm/trunk/include/js/ajax.js
==============================================================================
--- vtigercrm/trunk/include/js/ajax.js (original)
+++ vtigercrm/trunk/include/js/ajax.js Mon May 29 17:28:17 2006
@@ -57,7 +57,7 @@
 status	Numeric code returned by server, such as 404 for "Not Found" or 200 for "OK"
 statusText	String message accompanying the status code
 */
-function Ajax(cb)
+function VtigerAjax(cb)
 {
   var me = this;
   this.requester = getRequester();

Modified: vtigercrm/trunk/include/js/dtlviewajax.js
==============================================================================
--- vtigercrm/trunk/include/js/dtlviewajax.js (original)
+++ vtigercrm/trunk/include/js/dtlviewajax.js Mon May 29 17:28:17 2006
@@ -95,7 +95,7 @@
      data = data + "&fldName=" + fieldName + "&fieldValue=" + escape(tagValue) + "&ajxaction=DETAILVIEW";
      show("vtbusy_info");
      
-     var ajaxObj = new Ajax(dtlViewAjaxResponse);
+     var ajaxObj = new VtigerAjax(dtlViewAjaxResponse);
      ajaxObj.process("index.php?",data);
      if(uitype == '13')
      {
@@ -185,7 +185,7 @@
 	document.getElementById(txtBox).value ='';
     var data = "module=" + module + "&action=" + module + "Ajax&file=TagCloud&recordid=" + crmId + "&file=TagCloud&ajxaction=SAVETAG&tagfields=" +tagValue;
     
-	var ajaxObj = new Ajax(dtlViewAjaxTagResponse);
+	var ajaxObj = new VtigerAjax(dtlViewAjaxTagResponse);
     ajaxObj.process("index.php?",data);
    	show("vtbusy_info");
 }

Modified: vtigercrm/trunk/modules/Activities/Activity.js
==============================================================================
--- vtigercrm/trunk/modules/Activities/Activity.js (original)
+++ vtigercrm/trunk/modules/Activities/Activity.js Mon May 29 17:28:17 2006
@@ -93,7 +93,7 @@
 {
 
 		show("status");
-		var ajaxObj = new Ajax(ajaxSaveResponse);
+		var ajaxObj = new VtigerAjax(ajaxSaveResponse);
 		var viewName = selectView.options[selectView.options.selectedIndex].value;
 		var urlstring ="module=Activities&action=ActivitiesAjax&file=ListView&ajax=true&viewname="+viewName;
 	    ajaxObj.process("index.php?",urlstring);
@@ -144,7 +144,7 @@
 		if(confirm("Are you sure you want to delete the selected "+xx+" records ?"))
 		{
 			show("status");
-			var ajaxObj = new Ajax(ajaxSaveResponse);
+			var ajaxObj = new VtigerAjax(ajaxSaveResponse);
 			var urlstring ="module=Users&action=massdelete&return_module=Activities&viewname="+viewid+"&idlist="+idstring;
 	    	ajaxObj.process("index.php?",urlstring);
 		}

Modified: vtigercrm/trunk/modules/Calendar/script.js
==============================================================================
--- vtigercrm/trunk/modules/Calendar/script.js (original)
+++ vtigercrm/trunk/modules/Calendar/script.js Mon May 29 17:28:17 2006
@@ -387,7 +387,7 @@
 }
 
 function fnRedirect(view,hour,day,month,year){
-	var ajaxObj = new Ajax(ajaxCalSaveResponse);
+	var ajaxObj = new VtigerAjax(ajaxCalSaveResponse);
 	var tagName =  document.getElementById('viewBox');
 	var OptionData = tagName.options[tagName.selectedIndex].value;
 	if(OptionData == 'hourview'){
@@ -427,7 +427,7 @@
 
 function getMiniCal()
 {
-	var ajaxObj = new Ajax(ajaxMiniCalSaveResponse);
+	var ajaxObj = new VtigerAjax(ajaxMiniCalSaveResponse);
 	var urlstring ="module=Calendar&action=CalendarAjax&type=minical&parenttab=My Home Page&ajax=true";
 	ajaxObj.process("index.php?",urlstring);
 	
@@ -435,7 +435,7 @@
 
 function getCalSettings()
 {
-	 var ajaxObj = new Ajax(ajaxCalSettingsSaveResponse);
+	 var ajaxObj = new VtigerAjax(ajaxCalSettingsSaveResponse);
 	 var urlstring ="module=Calendar&action=CalendarAjax&type=settings&parenttab=My Home Page&ajax=true";
 	 ajaxObj.process("index.php?",urlstring);
 }

Modified: vtigercrm/trunk/modules/Contacts/js/chat.js
==============================================================================
--- vtigercrm/trunk/modules/Contacts/js/chat.js (original)
+++ vtigercrm/trunk/modules/Contacts/js/chat.js Mon May 29 17:28:17 2006
@@ -80,7 +80,7 @@
       debug("debug",e.filename+":"+e.lineNumber);
       return;
     }
-    me.ajax = new Ajax(me.callback);
+    me.ajax = new VtigerAjax(me.callback);
     debug("debug",response.responseText);
     window.status=Date();
   };
@@ -94,7 +94,7 @@
     me.refreshChats();
   };
 
-  this.ajax = new Ajax(me.callback);
+  this.ajax = new VtigerAjax(me.callback);
 
   // start the ajax request for the chat data
   this.refresh = function()
@@ -252,7 +252,7 @@
   this.input = td1.appendChild(this.input);
   td2.onclick = function()
   {
-    var ajax = new Ajax(me.callback);
+    var ajax = new VtigerAjax(me.callback);
     ajax.process("index.php?mode=chat&module=Contacts&action=chat","submode=submit&msg="+escape(me.input.value,1)+(me.to?"&to="+me.to:""));
     me.input.value = "";
     me.input.focus();
@@ -265,7 +265,7 @@
   this.form.appendChild(table);
   this.form.onsubmit = function()
   {
-    var ajax = new Ajax(me.callback);
+    var ajax = new VtigerAjax(me.callback);
     ajax.process("index.php?mode=chat&module=Contacts&action=chat","submode=submit&msg="+escape(me.input.value,1)+(me.to?"&to="+me.to:""));
     me.input.value = "";
     me.input.focus();
@@ -323,7 +323,7 @@
 
   this.win.cb = function()
   {
-    me.ajax = new Ajax(me.callback);
+    me.ajax = new VtigerAjax(me.callback);
     me.ajax.process("index.php?mode=chat&module=Contacts&action=chat","submode=pvclose&to="+me.to);
     chats[me.to]=null;
   };

Modified: vtigercrm/trunk/modules/Emails/Email.js
==============================================================================
--- vtigercrm/trunk/modules/Emails/Email.js (original)
+++ vtigercrm/trunk/modules/Emails/Email.js Mon May 29 17:28:17 2006
@@ -65,9 +65,9 @@
 			getObj('search_text').value = '';
 			show("status");
 			if(!delete_selected_row)
-				var ajaxObj = new Ajax(ajaxSaveResponse);
+				var ajaxObj = new VtigerAjax(ajaxSaveResponse);
 			else	
-				var ajaxObj = new Ajax(ajaxDelResponse);
+				var ajaxObj = new VtigerAjax(ajaxDelResponse);
 			var urlstring ="module=Users&action=massdelete&folderid="+gFolderid+"&return_module=Emails&idlist="+idstring;
 		    ajaxObj.process("index.php?",urlstring);
 		}
@@ -83,7 +83,7 @@
 		getObj('search_text').value = '';
 		gselectedrowid = 0;
 		show("status");
-		var ajaxObj = new Ajax(ajaxDelResponse);
+		var ajaxObj = new VtigerAjax(ajaxDelResponse);
 		var urlstring ="module=Users&action=massdelete&return_module=Emails&folderid="+gFolderid+"&idlist="+id;
 	   	ajaxObj.process("index.php?",urlstring);
 	}
@@ -98,7 +98,7 @@
 	var osearch_field = document.getElementById('search_field');
 	var search_field = osearch_field.options[osearch_field.options.selectedIndex].value;
 	var search_text = document.getElementById('search_text').value;
-	var ajaxObj = new Ajax(ajaxDelResponse);
+	var ajaxObj = new VtigerAjax(ajaxDelResponse);
 	var urlstring ="module=Emails&action=EmailsAjax&ajax=true&file=ListView&folderid="+gFolderid+"&search=true&search_field="+search_field+"&search_text="+search_text;
     ajaxObj.process("index.php?",urlstring);
 }

Modified: vtigercrm/trunk/modules/Faq/Faq.js
==============================================================================
--- vtigercrm/trunk/modules/Faq/Faq.js (original)
+++ vtigercrm/trunk/modules/Faq/Faq.js Mon May 29 17:28:17 2006
@@ -51,7 +51,7 @@
 	if(confirm("Are you sure you want to delete the selected "+xx+" records ?"))
     {
 		show("status");
-		var ajaxObj = new Ajax(ajaxSaveResponse);
+		var ajaxObj = new VtigerAjax(ajaxSaveResponse);
 		var urlstring ="module=Users&action=massdelete&return_module=Faq&idlist="+idstring;
 	    ajaxObj.process("index.php?",urlstring);
 	}

Modified: vtigercrm/trunk/modules/Migration/ModifyDatabase/42P2_to_50Alpha.php
==============================================================================
--- vtigercrm/trunk/modules/Migration/ModifyDatabase/42P2_to_50Alpha.php (original)
+++ vtigercrm/trunk/modules/Migration/ModifyDatabase/42P2_to_50Alpha.php Mon May 29 17:28:17 2006
@@ -2807,7 +2807,7 @@
 
 		if(crate != 0 && crate > 0)
 		{
-			var ajaxObj = new Ajax(ajaxSaveResponse);
+			var ajaxObj = new VtigerAjax(ajaxSaveResponse);
 			url = 'module=Migration&action=updateCurrency&ajax=1&crate='+crate;
 			ajaxObj.process("index.php?",url);
 		}

Modified: vtigercrm/trunk/modules/Portal/Portal.js
==============================================================================
--- vtigercrm/trunk/modules/Portal/Portal.js (original)
+++ vtigercrm/trunk/modules/Portal/Portal.js Mon May 29 17:28:17 2006
@@ -12,7 +12,7 @@
 function fetchAddSite(id)
 {
 	show('status');
-	var ajaxObj = new Ajax(ajaxeditSiteResp);
+	var ajaxObj = new VtigerAjax(ajaxeditSiteResp);
 	url ='module=Portal&action=PortalAjax&file=Popup&record='+id;
 	ajaxObj.process("index.php?",url);
 }
@@ -35,7 +35,7 @@
 		getObj('datatab').className = 'SiteUnSel';
 		getObj('managetab').className = 'SiteSel';
 	}
-	var ajaxObj = new Ajax(ajaxfetchContentsResp);
+	var ajaxObj = new VtigerAjax(ajaxfetchContentsResp);
 	url ='action=PortalAjax&mode=ajax&module=Portal&file=ListView&datamode='+mode;
 	ajaxObj.process("index.php?",url);
 }
@@ -49,14 +49,14 @@
 	if(confirm("Are you sure you want to delete ?"))
 	{
 		show('status');
-		var ajaxObj = new Ajax(ajaxfetchContentsResp);
+		var ajaxObj = new VtigerAjax(ajaxfetchContentsResp);
 		url ='action=PortalAjax&mode=ajax&file=Delete&module=Portal&record='+id;
 		ajaxObj.process("index.php?",url);
 	}
 }
 function SaveSite(id)
 {
-	var ajaxObj = new Ajax(ajaxfetchContentsResp);
+	var ajaxObj = new VtigerAjax(ajaxfetchContentsResp);
 	if (document.getElementById('portalurl').value.replace(/^\s+/g, '').replace(/\s+$/g, '').length==0) {
 		alert('Site Url cannot be empty')
 		return false;

Modified: vtigercrm/trunk/modules/Users/listroles.html
==============================================================================
--- vtigercrm/trunk/modules/Users/listroles.html (original)
+++ vtigercrm/trunk/modules/Users/listroles.html Mon May 29 17:28:17 2006
@@ -123,7 +123,7 @@
 function DeleteRole(roleid)
 {
     //show("an_busy");
-    var ajaxObj = new Ajax(ajaxSaveResponse);
+    var ajaxObj = new VtigerAjax(ajaxSaveResponse);
     var urlstring = "module=Users&action=UsersAjax&file=RoleDeleteStep1&roleid="+roleid;
     ajaxObj.process("index.php?",urlstring);
 }





More information about the vtigercrm-commits mailing list