Changeset 3768 for branches/2.2/calendar
- Timestamp:
- 02/15/11 16:33:52 (13 years ago)
- Location:
- branches/2.2/calendar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/calendar/js/edit_exmail.js
r1796 r3768 399 399 } 400 400 Field = document.getElementById('rpt_label'); 401 Field.parentNode.parentNode.style.display = "";401 if(Field) Field.parentNode.parentNode.style.display = ""; 402 402 Field = document.getElementsByName('participants[]'); 403 Field[0].parentNode.parentNode.style.display = "";404 Field[1].parentNode.parentNode.style.display = "";403 if(Field[0]) Field[0].parentNode.parentNode.style.display = ""; 404 if(Field[1]) Field[1].parentNode.parentNode.style.display = ""; 405 405 Field = document.getElementById('txt_loading'); 406 406 Field.parentNode.parentNode.style.display = ""; 407 407 Field = document.getElementsByName('cal[rpt_day][]'); 408 Field[0].parentNode.parentNode.style.display = "";408 if(Field[0]) Field[0].parentNode.parentNode.style.display = ""; 409 409 break; 410 410 } … … 426 426 window.onload = function(){ 427 427 __onLoad(); 428 var cal_type = document.getElementById('cal[type]').value; 428 var cal_type_element = document.getElementById('cal[type]'); 429 var cal_type = (cal_type_element) ? cal_type_element.value : null; 429 430 changeViewMode(cal_type); 430 431 if(cal_type == 'hourAppointment'){ -
branches/2.2/calendar/templates/default/delegate.tpl
r1646 r3768 2 2 <script type="text/javascript" src="phpgwapi/js/dJSWin/dJSWin.js"></script> 3 3 <script src='{url_template}/../../js/edit_exmail.js' type='text/javascript'></script> 4 <script src='{module_name}/inc/load_lang.php' type='text/javascript'></script>5 4 <script src='{module_name}/js/connector.js' type='text/javascript'></script> 6 <script type='text/javascript'>var DEFAULT_URL = '{module_name}/controller.php?action=';</script> 5 <script type='text/javascript'>var DEFAULT_URL = '{module_name}/controller.php?action=';</script> 7 6 <font color="#FF0000">{error_msg}</font> 8 7 <form action="index.php">
Note: See TracChangeset
for help on using the changeset viewer.