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:
Ralf Becker 2016-07-29 16:00:45 +02:00
parent fa7bd97801
commit b077423223
3 changed files with 3 additions and 4 deletions

View File

@ -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.',

View File

@ -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'],
);

View File

@ -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>