mirror of
https://github.com/13hannes11/UU_hci_prototype.git
synced 2024-09-04 01:11:00 +02:00
add fill free space after adding task
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user