[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 /********************************************************************************* 2 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 3 * ("License"); You may not use this file except in compliance with the License 4 * The Original Code is: vtiger CRM Open Source 5 * The Initial Developer of the Original Code is vtiger. 6 * Portions created by vtiger are Copyright (C) vtiger. 7 * All Rights Reserved. 8 * 9 ********************************************************************************/ 10 11 document.write("<script type='text/javascript' src='include/js/Merge.js'></"+"script>"); 12 function verify_data(form) { 13 if(! form.createpotential.checked == true) 14 { 15 if (form.potential_name.value == "") 16 { 17 alert("Opportunity Name field cannot be empty"); 18 return false; 19 } 20 if (form.closedate.value == "") 21 { 22 alert("Close Date field cannot be empty"); 23 return false; 24 } 25 return dateValidate('closedate','Potential Close Date','GECD'); 26 27 28 } 29 return true; 30 } 31 32 function togglePotFields(form) 33 { 34 if (form.createpotential.checked == true) 35 { 36 form.potential_name.disabled = true; 37 form.closedate.disabled = true; 38 39 } 40 else 41 { 42 form.potential_name.disabled = false; 43 form.closedate.disabled = false; 44 } 45 46 } 47 48 function toggleAssignType(currType) 49 { 50 if (currType=="U") 51 { 52 getObj("assign_user").style.display="block" 53 getObj("assign_team").style.display="none" 54 } 55 else 56 { 57 getObj("assign_user").style.display="none" 58 getObj("assign_team").style.display="block" 59 } 60 } 61 62 function set_return(product_id, product_name) { 63 window.opener.document.EditView.parent_name.value = product_name; 64 window.opener.document.EditView.parent_id.value = product_id; 65 } 66 67 function set_return_todo(product_id, product_name) { 68 window.opener.document.createTodo.task_parent_name.value = product_name; 69 window.opener.document.createTodo.task_parent_id.value = product_id; 70 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |