Fix calendar edit form labels and item selection
This commit is contained in:
parent
e7679b1014
commit
89ece32c78
4 changed files with 17 additions and 6 deletions
|
@ -2832,6 +2832,13 @@ function rcube_calendar_ui(settings)
|
|||
|
||||
e.stopPropagation();
|
||||
}
|
||||
})
|
||||
.on('keypress', 'input[type=checkbox]', function(e) {
|
||||
// select calendar on <Enter>
|
||||
if (e.keyCode == 13) {
|
||||
calendars_list.select(this.value);
|
||||
return rcube_event.cancel(e);
|
||||
}
|
||||
});
|
||||
|
||||
// register dbl-click handler to open calendar edit dialog
|
||||
|
|
|
@ -1282,8 +1282,9 @@ class kolab_driver extends calendar_driver
|
|||
$hidden_fields[] = array('name' => 'parent', 'value' => $path_imap);
|
||||
}
|
||||
else {
|
||||
$select = kolab_storage::folder_selector('event', array('name' => 'parent'), $folder);
|
||||
$select = kolab_storage::folder_selector('event', array('name' => 'parent', 'id' => 'calendar-parent'), $folder);
|
||||
$form['props']['fieldsets']['location']['content']['path'] = array(
|
||||
'id' => 'calendar-parent',
|
||||
'label' => $this->cal->gettext('parentcalendar'),
|
||||
'value' => $select->show(strlen($folder) ? $path_imap : ''),
|
||||
);
|
||||
|
@ -1363,10 +1364,9 @@ class kolab_driver extends calendar_driver
|
|||
if (is_array($form['content']) && !empty($form['content'])) {
|
||||
$table = new html_table(array('cols' => 2));
|
||||
foreach ($form['content'] as $col => $colprop) {
|
||||
$colprop['id'] = '_'.$col;
|
||||
$label = !empty($colprop['label']) ? $colprop['label'] : rcube_label($col);
|
||||
|
||||
$table->add('title', sprintf('<label for="%s">%s</label>', $colprop['id'], Q($label)));
|
||||
$table->add('title', html::label($colprop['id'], Q($label)));
|
||||
$table->add(null, $colprop['value']);
|
||||
}
|
||||
$content = $table->show();
|
||||
|
|
|
@ -1174,10 +1174,14 @@ a.dropdown-link:after {
|
|||
padding-right: 10px;
|
||||
}
|
||||
|
||||
#calendar-kolabform fieldset.tab {
|
||||
#calendar-kolabform .tabsbar.ui-tabs-nav {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#calendar-kolabform fieldset.ui-tabs-panel {
|
||||
background: #efefef;
|
||||
display: block;
|
||||
margin-top: 0.5em;
|
||||
margin-top: 2px;
|
||||
padding: 0.5em 1em;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue