Browse Source

add refresData in update task

pull/1/head
wahyuun 10 months ago
parent
commit
a0e84044ff
  1. 1
      edit-mode/function/function.js
  2. 1
      view-mode/function/function.js

1
edit-mode/function/function.js

@ -274,6 +274,7 @@ function updateActivity(id) {
gantt.getTask(id).progress = data.progress; gantt.getTask(id).progress = data.progress;
gantt.getTask(id).jobs_done = data.jobs_done ? data.jobs_done : 0; gantt.getTask(id).jobs_done = data.jobs_done ? data.jobs_done : 0;
gantt.updateTask(id); gantt.updateTask(id);
refresData();
actionHappen = false; actionHappen = false;
}, },
error: function (data) { error: function (data) {

1
view-mode/function/function.js

@ -176,6 +176,7 @@ function updateActivity(id)
gantt.getTask(id).progress = data.progress; gantt.getTask(id).progress = data.progress;
gantt.getTask(id).jobs_done = data.jobs_done ? data.jobs_done : 0; gantt.getTask(id).jobs_done = data.jobs_done ? data.jobs_done : 0;
gantt.updateTask(id); gantt.updateTask(id);
refresData();
actionHappen = false; actionHappen = false;
}, },
error: function (data) { error: function (data) {

Loading…
Cancel
Save