Browse Source

Fix drag task (unfinished)

pull/1/head
Wahyu Ramadhan 2 years ago
parent
commit
8324a37841
  1. 5
      edit-mode/function/ganttEvent.js

5
edit-mode/function/ganttEvent.js

@ -55,6 +55,11 @@ gantt.attachEvent("onBeforeTaskUpdate", function(id,new_item){
new_item['progress'] = progress;
});
gantt.attachEvent("onAfterTaskDrag", function(id, mode, e){
var task = gantt.getTask(id);
task.end_date = gantt.calculateEndDate(task);
gantt.updateTask(id);
});
gantt.attachEvent("onBeforeLinkAdd", function(id,link){
//any custom logic here

Loading…
Cancel
Save