mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-15 02:19:39 +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 || [],
|
data: value.data || [],
|
||||||
links: value.links || []
|
links: value.links || []
|
||||||
};
|
};
|
||||||
|
this.gantt.config.start_date = null;
|
||||||
|
this.gantt.config.end_date = null;
|
||||||
this.gantt.parse(safe_value);
|
this.gantt.parse(safe_value);
|
||||||
|
|
||||||
// Set some things from the value
|
// Set some things from the value
|
||||||
@ -343,8 +345,8 @@ var et2_gantt = et2_valueWidget.extend([et2_IResizeable,et2_IInput],
|
|||||||
{
|
{
|
||||||
level = 3;
|
level = 3;
|
||||||
}
|
}
|
||||||
// More than 3 days
|
// More than 1 day
|
||||||
else if (difference > 259200)
|
else if (difference > 86400)
|
||||||
{
|
{
|
||||||
level = 2;
|
level = 2;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user