|
|
|
@ -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); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|