mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Round progress to nearest 10%, as all the apps do
This commit is contained in:
parent
3ea2ed1332
commit
fa792cd6ae
@ -845,6 +845,15 @@ var et2_gantt = et2_inputWidget.extend([et2_IResizeable,et2_IInput],
|
||||
// Update server after dragging a task
|
||||
this.gantt.attachEvent("onAfterTaskDrag", function(id, mode, e) {
|
||||
if(gantt_widget.options.readonly) return false;
|
||||
|
||||
// Round to nearest 10%
|
||||
var task = this.getTask(id);
|
||||
if(mode==="progress")
|
||||
{
|
||||
task.progress = Math.round(task.progress * 10) / 10;
|
||||
this.updateTask(task.id);
|
||||
}
|
||||
|
||||
var task = jQuery.extend({},this.getTask(id));
|
||||
|
||||
// Gantt chart deals with dates as Date objects, format as server likes
|
||||
|
Loading…
Reference in New Issue
Block a user