[Vtigercrm-commits] [vtiger-commits] r7470 - /vtigercrm/trunk/modules/Contacts/Contact.js

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri Jun 23 09:23:58 EDT 2006


Author: saraj
Date: Fri Jun 23 07:23:55 2006
New Revision: 7470

Log:
SelectAll js function has been moved to general.js

Modified:
    vtigercrm/trunk/modules/Contacts/Contact.js

Modified: vtigercrm/trunk/modules/Contacts/Contact.js
==============================================================================
--- vtigercrm/trunk/modules/Contacts/Contact.js (original)
+++ vtigercrm/trunk/modules/Contacts/Contact.js Fri Jun 23 07:23:55 2006
@@ -60,62 +60,6 @@
 	}
 }
 
-//Function added for Mass select in Popup - Philip
-function SelectAll()
-{
-
-        x = document.selectall.selected_id.length;
-	var entity_id = window.opener.document.getElementById('parent_id').value
-	var module = window.opener.document.getElementById('return_module').value
-	document.selectall.action.value='updateRelations'
-        idstring = "";
-
-        if ( x == undefined)
-        {
-
-                if (document.selectall.selected_id.checked)
-                {
-                        document.selectall.idlist.value=document.selectall.selected_id.value;
-                }
-                else
-                {
-                        alert("Please select atleast one entity");
-                        return false;
-                }
-        }
-        else
-        {
-                xx = 0;
-                for(i = 0; i < x ; i++)
-                {
-                        if(document.selectall.selected_id[i].checked)
-                        {
-                                idstring = document.selectall.selected_id[i].value +";"+idstring
-                        xx++
-                        }
-                }
-                if (xx != 0)
-                {
-                        document.selectall.idlist.value=idstring;
-                }
-                else
-                {
-                        alert("Please select atleast one entity");
-                        return false;
-                }
-	}
-		if(confirm("Are you sure you want to add the selected "+xx+" records ?"))
-		{
-		opener.document.location.href="index.php?module="+module+"&parentid="+entity_id+"&action=updateRelations&destination_module=Contacts&idlist="+idstring;
-		self.close();
-		}
-		else
-		{
-			return false;
-		}
-}
-
-
 function set_return(product_id, product_name) {
         window.opener.document.EditView.parent_name.value = product_name;
         window.opener.document.EditView.parent_id.value = product_id;





More information about the vtigercrm-commits mailing list