Browse Source

Add conditional refresh

pull/1/head
Wahyu Ramadhan 1 year ago
parent
commit
13b63b9b19
  1. 4
      edit-mode/function/restActivityLink.js

4
edit-mode/function/restActivityLink.js

@ -76,6 +76,7 @@ function refresData(id) {
gantt.silent(function () {
gantt.parse(data);
getGanttOpen();
gantt.parse(data);
});
if (id) {
if (gantt.isTaskExists(id)) {
@ -213,6 +214,9 @@ var dp = gantt.createDataProcessor(function (entity, action, data, id) {
} else if (parent && parent > 0) {
updateActivity(parent);
}
if (!parent) {
refresData();
}
}
}).catch(function (error) {
$("body").removeClass("loading");

Loading…
Cancel
Save