Browse Source

Duration update

pull/1/head
Wahyu Ramadhan 2 years ago
parent
commit
00d3c24e31
  1. 3
      edit-mode/function/restActivityLink.js

3
edit-mode/function/restActivityLink.js

@ -69,6 +69,7 @@ var dp = gantt.createDataProcessor(function(entity, action, data, id) {
} }
} }
data['version_gantt_id'] = ganttId; data['version_gantt_id'] = ganttId;
data['duration'] += 1;
return gantt.ajax.post({ return gantt.ajax.post({
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
@ -115,6 +116,8 @@ var dp = gantt.createDataProcessor(function(entity, action, data, id) {
} }
}); });
} }
data['sortorder'] = data['target'];
data['duration'] += 1;
return gantt.ajax.put({ return gantt.ajax.put({
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",

Loading…
Cancel
Save