Browse Source

Fix update bobot

pull/1/head
Wahyu Ramadhan 2 years 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){ function refresData(id){
console.log("refres triggered!!"); console.log("refres triggered!!");
// Store the current scroll position
var scrollState = {
x: gantt.getScrollState().x,
y: gantt.getScrollState().y
};
gantt.ajax.get({ gantt.ajax.get({
url: `${base_url}activity/${ganttId}/${proyekId}/get`, url: `${base_url}activity/${ganttId}/${proyekId}/get`,
headers: { headers: {
@ -47,6 +54,10 @@ function refresData(id){
expandTask(); expandTask();
} }
} }
// Restore the scroll position
gantt.scrollTo(scrollState.x, scrollState.y);
}); });
} }

Loading…
Cancel
Save