mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
Round dates to grid scale, avoids potential infinite loop in the other method
This commit is contained in:
parent
354a8426af
commit
785ed4e4c1
@ -73,9 +73,11 @@ var et2_gantt = et2_valueWidget.extend([et2_IResizeable],
|
||||
min_column_width: 30,
|
||||
fit_tasks: true,
|
||||
autosize: 'y',
|
||||
round_dnd_dates: false,
|
||||
// Date rounding happens either way, but this way it rounds to the displayed grid resolution
|
||||
// Also avoids a potential infinite loop thanks to how the dates are rounded with false
|
||||
round_dnd_dates: true,
|
||||
scale_unit: 'day',
|
||||
date_scale: '%d',//(egw.preference('dateformat')).replace(/[YMmdhHisaA]/g,function(a) {return '%'+a;}),
|
||||
date_scale: '%d',
|
||||
subscales: [
|
||||
{unit:"month", step:1, date:"%F, %Y"},
|
||||
//{unit:"hour", step:1, date:"%G"}
|
||||
|
Loading…
Reference in New Issue
Block a user