Browse Source

conflict

pull/1/head
ibnu 1 year ago
parent
commit
9f6a2e71cb
  1. 10
      edit-mode/function/function.js

10
edit-mode/function/function.js

@ -556,10 +556,10 @@ function updateShowHideColumn(data) {
processData: false,
contentType: false,
success: function (data) {
console.log(data);
// console.log(data);
},
error: function (data) {
console.log(data);
// console.log(data);
}
});
}
@ -570,6 +570,8 @@ function colAjaxReq(type) {
type: "GET",
success: function (data) {
let ganttColumnsByType = data.data;
// console.log("ini gantt field ", ganttColumnsByType);
// console.log("ini column ", gantt.config.columns);
let isFound = false;
x = gantt.config.columns.filter((val) => {
isFound = ganttColumnsByType.find(obj => {
@ -577,6 +579,10 @@ function colAjaxReq(type) {
});
if (isFound)
return val;
if (isFound == false){
// console.log("ini gantt field !isFound ", val);
}
});
gantt.config.columns = x.filter(item => item);
allColumns = gantt.config.columns;

Loading…
Cancel
Save