|
|
@ -339,7 +339,7 @@ function initializationColumn() { |
|
|
|
if (data.status == "not yet have") { |
|
|
|
if (data.status == "not yet have") { |
|
|
|
addShowHideColumn(); |
|
|
|
addShowHideColumn(); |
|
|
|
} else if (data.status == "not have access") { |
|
|
|
} else if (data.status == "not have access") { |
|
|
|
|
|
|
|
gantt.config.columns = createColumnsConfig(columnShows); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
setUpForShowHideColumn(data); |
|
|
|
setUpForShowHideColumn(data); |
|
|
|
} |
|
|
|
} |
|
|
@ -513,7 +513,7 @@ function submitShowHideColumn(allColumn) { |
|
|
|
version_gantt_id: ganttId, |
|
|
|
version_gantt_id: ganttId, |
|
|
|
columns: allColumn |
|
|
|
columns: allColumn |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
gantt.config.columns = createColumnsConfig(allColumn); |
|
|
|
$.ajax({ |
|
|
|
$.ajax({ |
|
|
|
data: JSON.stringify(payload), |
|
|
|
data: JSON.stringify(payload), |
|
|
|
url: `${base_url}gantt-show-hide/add`, |
|
|
|
url: `${base_url}gantt-show-hide/add`, |
|
|
|