Browse Source

Fix update parent

pull/1/head
Wahyu Ramadhan 2 years ago
parent
commit
4cd69c8f9e
  1. 7
      edit-mode/function/restActivityLink.js

7
edit-mode/function/restActivityLink.js

@ -130,12 +130,11 @@ var dp = gantt.createDataProcessor(function(entity, action, data, id) {
let responseText = JSON.parse(response.responseText) let responseText = JSON.parse(response.responseText)
let resData = responseText let resData = responseText
let updateBobot = resData.update_bobot || false let updateBobot = resData.update_bobot || false
if(parent && parent > 0){
updateActivity(parent);
}
if(updateBobot){ if(updateBobot){
refresData(id); refresData(id);
}else{
if(parent && parent > 0){
updateActivity(parent);
}
} }
} }
}); });

Loading…
Cancel
Save