mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +01:00
Add a preference to control how many lines are allowed for all day non-blocking events before we start hiding some
This commit is contained in:
parent
7181b4eab4
commit
5b7e29a39a
@ -306,6 +306,16 @@ class calendar_hooks
|
||||
'xmlrpc' => True,
|
||||
'admin' => False
|
||||
),
|
||||
'limit_all_day_lines' => array(
|
||||
'type' => 'input',
|
||||
'size' => 5,
|
||||
'label' => 'Limit number of lines for all day events',
|
||||
'name' => 'limit_all_day_lines',
|
||||
'help' => 'How many lines of all day events should be directly visible. Further lines are available via a mouseover.',
|
||||
'xmlrpc' => True,
|
||||
'default'=> 3,
|
||||
'admin' => False
|
||||
),
|
||||
'planner_show_empty_rows' => array(
|
||||
'type' => 'select',
|
||||
'label' => 'Show empty rows in Planner',
|
||||
|
@ -72,6 +72,7 @@ var et2_calendar_daycol = (function(){ "use strict"; return et2_valueWidget.exte
|
||||
.appendTo(this.header);
|
||||
this.all_day = jQuery(document.createElement('div'))
|
||||
.addClass("calendar_calDayColAllDay")
|
||||
.css('max-height', (egw.preference('limit_all_day_lines', 'calendar') || 3 ) * 1.4 + 'em')
|
||||
.appendTo(this.header);
|
||||
this.event_wrapper = jQuery(document.createElement('div'))
|
||||
.addClass("event_wrapper")
|
||||
|
Loading…
Reference in New Issue
Block a user