mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:44 +01:00
- Change zoom auto level to better suit projects a day or two long
- Reset start/end dates when changing data
This commit is contained in:
parent
b2544e1b2d
commit
175d6b7201
@ -236,6 +236,8 @@ var et2_gantt = et2_valueWidget.extend([et2_IResizeable,et2_IInput],
|
||||
data: value.data || [],
|
||||
links: value.links || []
|
||||
};
|
||||
this.gantt.config.start_date = null;
|
||||
this.gantt.config.end_date = null;
|
||||
this.gantt.parse(safe_value);
|
||||
|
||||
// Set some things from the value
|
||||
@ -343,8 +345,8 @@ var et2_gantt = et2_valueWidget.extend([et2_IResizeable,et2_IInput],
|
||||
{
|
||||
level = 3;
|
||||
}
|
||||
// More than 3 days
|
||||
else if (difference > 259200)
|
||||
// More than 1 day
|
||||
else if (difference > 86400)
|
||||
{
|
||||
level = 2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user