Round dates to grid scale, avoids potential infinite loop in the other method

This commit is contained in:
Nathan Gray 2014-04-28 23:05:26 +00:00
parent 354a8426af
commit 785ed4e4c1

View File

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