Changeset 638 for trunk/calendar/templates/celepar/js/edit.js
- Timestamp:
- 01/30/09 08:07:53 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/templates/celepar/js/edit.js
r602 r638 98 98 selectOpener.options[selectOpener.options.length-1].selected = true; 99 99 } 100 function changeViewMode(chValue){101 switch (chValue){102 case 'hourAppointment':103 var names=new Array('title','priority','location','alarmhours','alarmminutes','recur_type','rpt_use_end','recur_interval','rpt_label');104 for (var i=0; i < names.length; i++)105 {106 var Field = document.getElementsByName('cal['+names[i]+']');107 if (Field[0])108 Field[0].parentNode.parentNode.style.display = "none";109 }110 111 Field = document.getElementsByName('participants[]');112 Field[0].parentNode.parentNode.style.display = "none";113 Field[1].parentNode.parentNode.style.display = "none";114 Field = document.getElementById('txt_loading');115 Field.parentNode.parentNode.style.display = "none";116 Field = document.getElementsByName('cal[rpt_day][]');117 Field[0].parentNode.parentNode.style.display = "none";118 break;119 default:120 var names=new Array('title','priority','location','alarmhours','alarmminutes','recur_type','rpt_use_end','recur_interval','rpt_label');121 for (var i=0; i < names.length; i++)122 {123 var Field = document.getElementsByName('cal['+names[i]+']');124 if (Field[0])125 Field[0].parentNode.parentNode.style.display = "";126 }127 Field = document.getElementsByName('participants[]');128 Field[0].parentNode.parentNode.style.display = "";129 Field[1].parentNode.parentNode.style.display = "";130 Field = document.getElementById('txt_loading');131 Field.parentNode.parentNode.style.display = "";132 Field = document.getElementsByName('cal[rpt_day][]');133 Field[0].parentNode.parentNode.style.display = "";134 break;135 }136 137 }138 function updateTitleField(select){139 var typeField = document.getElementsByName('cal[type]');140 if (typeField[0].value != 'hourAppointment')141 return;142 var titleField = document.getElementsByName('cal[title]');143 var optionsArray = select.childNodes;144 titleField[0].value = '';145 for(option in optionsArray)146 if (optionsArray[option].selected)147 titleField[0].value += optionsArray[option].text + ' ';148 }149 150 100 151 101 // Fim
Note: See TracChangeset
for help on using the changeset viewer.