Commit 53c92475 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

cleanup app gantt tasks before drawing second time.

parent 3beb71eb
...@@ -475,6 +475,10 @@ ...@@ -475,6 +475,10 @@
gantt.templates.task_class = function(start, end, obj){ gantt.templates.task_class = function(start, end, obj){
return obj.parent ? "sub_task" : ""; return obj.parent ? "sub_task" : "";
}; };
try {
gantt.clearAll();
} catch (e) {
}
$('#gantt_output').show().dhx_gantt({ $('#gantt_output').show().dhx_gantt({
data: gantt_data, data: gantt_data,
scale_unit: 'day', scale_unit: 'day',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment