Browse Source

Fix update bobot

pull/1/head
Wahyu Ramadhan 1 year ago
parent
commit
cf560f06d3
  1. 11
      edit-mode/function/restActivityLink.js

11
edit-mode/function/restActivityLink.js

@ -26,6 +26,13 @@ gantt.ajax.get({
function refresData(id){
console.log("refres triggered!!");
// Store the current scroll position
var scrollState = {
x: gantt.getScrollState().x,
y: gantt.getScrollState().y
};
gantt.ajax.get({
url: `${base_url}activity/${ganttId}/${proyekId}/get`,
headers: {
@ -47,6 +54,10 @@ function refresData(id){
expandTask();
}
}
// Restore the scroll position
gantt.scrollTo(scrollState.x, scrollState.y);
});
}

Loading…
Cancel
Save