mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
get "integer" type settings working, by removing not used size attribute from template causing a 0 size input for integer
This commit is contained in:
parent
73e7510538
commit
37e7f783a0
@ -1638,7 +1638,7 @@ class calendar_groupdav extends Api\CalDAV\Handler
|
||||
'admin' => False,
|
||||
);
|
||||
$settings['calendar-past-limit'] = array(
|
||||
'type' => 'input',
|
||||
'type' => 'integer',
|
||||
'label' => lang('How many days to sync in the past (default %1)', self::PAST_LIMIT),
|
||||
'name' => 'calendar-past-limit',
|
||||
'help' => 'Clients not explicitly stating a limit get limited to these many days. A too high limit may cause problems with some clients.',
|
||||
@ -1646,7 +1646,7 @@ class calendar_groupdav extends Api\CalDAV\Handler
|
||||
'admin' => False,
|
||||
);
|
||||
$settings['calendar-future-limit'] = array(
|
||||
'type' => 'input',
|
||||
'type' => 'integer',
|
||||
'label' => lang('How many days to sync in the future (default %1)', self::FUTURE_LIMIT),
|
||||
'name' => 'calendar-future-limit',
|
||||
'help' => 'Clients not explicitly stating a limit get limited to these many days. A too high limit may cause problems with some clients.',
|
||||
|
@ -435,7 +435,6 @@ class preferences_settings
|
||||
'type' => $setting['type'],
|
||||
'label' => preg_replace('|<br[ /]*>|i', "\n", $setting['label']),
|
||||
'help' => lang($setting['help']), // is html
|
||||
//'size' => $setting['size'], // old eT
|
||||
'default' => !empty($default) ? lang('Default').': '.$default : null,
|
||||
'onchange' => $setting['onchange'],
|
||||
);
|
||||
|
@ -15,7 +15,7 @@
|
||||
<html id="${row}[help]" class="prefHelp"/>
|
||||
</box>
|
||||
<box>
|
||||
<widget type="@${row}[type]" id="@${row}[name]" onchange="@${row}[onchange]" size="@${row}[size]" no_lang="1" class="prefValue"/>
|
||||
<widget type="@${row}[type]" id="@${row}[name]" onchange="@${row}[onchange]" no_lang="1" class="prefValue"/>
|
||||
<description id="${row}[default]" no_lang="1" class="prefDefault"/>
|
||||
</box>
|
||||
</row>
|
||||
|
Loading…
Reference in New Issue
Block a user