mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-30 18:49:08 +01:00
Disable use_time_grid preference in calendar
This commit is contained in:
parent
4d0c75447c
commit
d0898a33c3
@ -405,7 +405,10 @@ class calendar_hooks
|
|||||||
'admin' => False,
|
'admin' => False,
|
||||||
'forced' => 'user',
|
'forced' => 'user',
|
||||||
),
|
),
|
||||||
'use_time_grid' => array(
|
//ATM:Disable the use_time_grid preference
|
||||||
|
//@TODO: the whole use_time_grid preference should be removed
|
||||||
|
// after we decided that is not neccessary to have it at all
|
||||||
|
/*'use_time_grid' => array(
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'label' => 'Views with fixed time intervals',
|
'label' => 'Views with fixed time intervals',
|
||||||
'name' => 'use_time_grid',
|
'name' => 'use_time_grid',
|
||||||
@ -414,7 +417,7 @@ class calendar_hooks
|
|||||||
'xmlrpc' => True,
|
'xmlrpc' => True,
|
||||||
'admin' => False,
|
'admin' => False,
|
||||||
'forced' => 'all',
|
'forced' => 'all',
|
||||||
),
|
),*/
|
||||||
'link_title' => array(
|
'link_title' => array(
|
||||||
'type' => 'multiselect',
|
'type' => 'multiselect',
|
||||||
'label' => 'Link title for events to show',
|
'label' => 'Link title for events to show',
|
||||||
|
@ -102,6 +102,11 @@ class calendar_uiviews extends calendar_ui
|
|||||||
*/
|
*/
|
||||||
var $use_time_grid=true;
|
var $use_time_grid=true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Pref value of use_time_grid preference
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
var $use_time_grid_pref = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Can we display the whole day in a timeGrid of the size of the workday and just scroll to workday start
|
* Can we display the whole day in a timeGrid of the size of the workday and just scroll to workday start
|
||||||
@ -171,7 +176,10 @@ class calendar_uiviews extends calendar_ui
|
|||||||
|
|
||||||
$this->check_owners_access();
|
$this->check_owners_access();
|
||||||
|
|
||||||
|
//ATM: Forces use_time_grid preference to use all views by ignoring the preference value
|
||||||
|
//@TODO: the whole use_time_grid preference should be removed (including dependent vars)
|
||||||
|
// after we decided that is not neccessary to have it at all
|
||||||
|
$this->use_time_grid_pref = 'all'; //$this->cal_prefs['use_time_grid'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -612,7 +620,7 @@ class calendar_uiviews extends calendar_ui
|
|||||||
{
|
{
|
||||||
if ($this->debug > 0) $this->bo->debug_message('uiviews::month(weeks=%1) date=%2',True,$weeks,$this->date);
|
if ($this->debug > 0) $this->bo->debug_message('uiviews::month(weeks=%1) date=%2',True,$weeks,$this->date);
|
||||||
|
|
||||||
$this->use_time_grid = !$this->cal_prefs['use_time_grid'] || $this->cal_prefs['use_time_grid'] == 'all'; // all views
|
$this->use_time_grid = !$this->use_time_grid_pref || $this->use_time_grid_pref == 'all'; // all views
|
||||||
|
|
||||||
// Merge print
|
// Merge print
|
||||||
if($weeks)
|
if($weeks)
|
||||||
@ -791,8 +799,8 @@ class calendar_uiviews extends calendar_ui
|
|||||||
*/
|
*/
|
||||||
function week($days=0,$home=false)
|
function week($days=0,$home=false)
|
||||||
{
|
{
|
||||||
$this->use_time_grid = $days != 4 && !in_array($this->cal_prefs['use_time_grid'],array('day','day4')) ||
|
$this->use_time_grid = $days != 4 && !in_array($this->use_time_grid_pref,array('day','day4')) ||
|
||||||
$days == 4 && $this->cal_prefs['use_time_grid'] != 'day';
|
$days == 4 && $this->use_time_grid_pref != 'day';
|
||||||
|
|
||||||
if (!$days)
|
if (!$days)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user