add fill free space after adding task

This commit is contained in:
2020-10-19 16:58:43 +02:00
parent a9704321a2
commit 07a3da4ed7

View File

@@ -215,8 +215,13 @@
}
split_up = function(appointment){
this.parent.remove_child(this.id);
if(appointment.start != this.start) {
this.parent.add_child(new EmptySpaceAppointment(this.start, appointment.start));
}
this.parent.add_child(appointment);
// TODO: fill empty space
if(appointment.end != this.end) {
this.parent.add_child(new EmptySpaceAppointment(appointment.end, this.end));
}
this.parent.rebulid_html();
}
}