mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Fix tab hidding issue in calendar.edit
This commit is contained in:
parent
f6eb00e6a1
commit
c7c0230233
@ -665,7 +665,6 @@ class calendar_uiforms extends calendar_ui
|
||||
$offset = DAY_s * $content['new_alarm']['days'] + HOUR_s * $content['new_alarm']['hours'] + 60 * $content['new_alarm']['mins'];
|
||||
$alarm = array(
|
||||
'offset' => $offset,
|
||||
//'time' => $content['start'] - $offset,
|
||||
'time' => $time - $offset,
|
||||
'all' => !$content['new_alarm']['owner'],
|
||||
'owner' => $content['new_alarm']['owner'] ? $content['new_alarm']['owner'] : $this->user,
|
||||
@ -935,7 +934,6 @@ class calendar_uiforms extends calendar_ui
|
||||
}
|
||||
}
|
||||
$etpl = new etemplate();
|
||||
$onload = '';
|
||||
if (!$etpl->read($preserv['template']))
|
||||
{
|
||||
$etpl->read($preserv['template'] = 'calendar.edit');
|
||||
@ -1144,7 +1142,7 @@ function replace_eTemplate_onsubmit()
|
||||
else
|
||||
{
|
||||
// hide the alarm tab for newly created exceptions
|
||||
$onload .= " document.getElementById('calendar.edit.alarms-tab').style.display = 'none';";
|
||||
$readonlys[$this->tabs]['alarms'] = true;
|
||||
|
||||
// disable the alarm tab functionality
|
||||
$readonlys['button[add_alarm]'] = true;
|
||||
@ -1191,7 +1189,7 @@ function replace_eTemplate_onsubmit()
|
||||
{
|
||||
//Add the check_recur_type function to onload, which disables recur_data function
|
||||
//if recur_type is not repeat weekly.
|
||||
$onload .= " check_recur_type('recur_type',2);";
|
||||
$onload = "check_recur_type('recur_type',2);";
|
||||
// We hide the enddate if one of our predefined durations fits
|
||||
// the call to set_style_by_class has to be in onload, to make sure the function and the element is already created
|
||||
$onload .= " set_style_by_class('table','end_hide','display','".($content['duration'] && isset($sel_options['duration'][$content['duration']]) ? 'none' : 'block')."');";
|
||||
|
Loading…
Reference in New Issue
Block a user