[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 2 /********************************************************************************* 3 4 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 5 * ("License"); You may not use this file except in compliance with the License 6 * The Original Code is: vtiger CRM Open Source 7 * The Initial Developer of the Original Code is vtiger. 8 * Portions created by vtiger are Copyright (C) vtiger. 9 * All Rights Reserved. 10 ********************************************************************************/ 11 12 function set_values(form) { 13 14 if (form.duedate_flag.checked) { 15 16 form.duedate_flag.value='on'; 17 18 form.duedate.value=""; 19 20 form.duetime.value=""; 21 22 form.duedate.readOnly=true; 23 24 form.duetime.readOnly=true; 25 26 document.images.jscal_trigger.width = 0; 27 28 document.images.jscal_trigger.height = 0; 29 30 } 31 32 else { 33 34 form.duedate_flag.value='off'; 35 36 form.duedate.readOnly=false; 37 38 form.duetime.readOnly=false; 39 40 if (form.duetime.readonly) alert ("it's readonly"); 41 42 document.images.jscal_trigger.width = 16; 43 44 document.images.jscal_trigger.height = 16; 45 46 } 47 48 } 49 function toggleTime() 50 { 51 if(getObj("notime").checked) 52 { 53 getObj("notime").value = 'on'; 54 getObj("duration_hours").disabled = true; 55 getObj("duration_minutes").disabled = true; 56 } 57 else 58 { 59 getObj("notime").value = 'off'; 60 getObj("duration_minutes").disabled = false; 61 getObj("duration_hours").disabled = false; 62 } 63 } 64 65 function toggleAssignType(currType) 66 67 { 68 69 if (currType=="U") 70 71 { 72 73 getObj("assign_user").style.display="block" 74 75 getObj("assign_team").style.display="none" 76 77 } 78 79 else 80 81 { 82 83 getObj("assign_user").style.display="none" 84 85 getObj("assign_team").style.display="block" 86 87 } 88 89 } 90 91 function showActivityView(selectactivity_view) 92 { 93 //script to reload the page with the view type when the combo values are changed 94 View_name = selectactivity_view.options[selectactivity_view.options.selectedIndex].value; 95 document.frmOpenLstView.action = "index.php?module=Home&action=index&activity_view="+View_name; 96 document.frmOpenLstView.submit(); 97 } 98 99
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 |