Compare commits

...

2 Commits

Author SHA1 Message Date
root cbdc34f063 update 5 months ago
root 78a851eaa1 update 5 months ago
  1. 2
      edit-mode/function/ganttConfig.js
  2. 7
      edit-mode/function/ganttSettings.js

2
edit-mode/function/ganttConfig.js

@ -5,7 +5,7 @@ const timestamp = getUrlParameter("timestamp");
let base_url = getUrlParameter("base_url");
const role_name = getUrlParameter("role_name");
const company_name = getUrlParameter("company_name");
const base_url_image = `https://project-api.ospro.id/assets/${company_name}/`;
const base_url_image = `https://si-api.ospro.id/assets/${company_name}/`;
const ganttName = getUrlParameter("gantt_name");
// const base_url_image = `http://localhost:8444/generic-ospro-backend/assets/${company_name}/`;
const adwIntegrationUrl = "https://adw-api.ospro.id/api";

7
edit-mode/function/ganttSettings.js

@ -196,6 +196,7 @@ async function initGanttSettings() {
$("#scale1").attr('checked', true);
// init to gantt chart view (holidays)
B
const result = await axiosInstance
.get(VERSION_GANTT_EDIT_URL, HEADER)
.then(res => res)
@ -225,6 +226,7 @@ async function initGanttSettings() {
}
}
}
B
function expandTask() {
gantt.eachTask(function (task) {
@ -234,6 +236,7 @@ function expandTask() {
toggleTasks = "Collapse";
$("#gantt_toggle_task_btn").prop('title', 'Collapse Activities');
$("#gantt_toggle_task_btn").children().removeClass('fa-expand-alt');
B
$("#gantt_toggle_task_btn").children().addClass('fa-compress-alt');
gantt.render();
}
@ -253,6 +256,7 @@ function toggleCollapseTasks() {
updateProperty({ task_open: false })
toggleTasks = "Expand";
$("#gantt_toggle_task_btn").prop('title', 'Expand Activities');
B
$("#gantt_toggle_task_btn").children().removeClass('fa-compress-alt');
$("#gantt_toggle_task_btn").children().addClass('fa-expand-alt'); // change icon to expand
}
@ -262,9 +266,11 @@ function toggleCollapseTasks() {
// Function Show / Hide Columns
B
function getColumnsSelection(node) {
var selectedColumns = node.querySelectorAll(":checked");
var unselectedColumn = node.querySelectorAll('input[type="checkbox"]:not(:checked)');
// B
// var allSelected = node.querySelector("#check-all").prop('checked');
var checkedColumns = {};
selectedColumns.forEach(function (node) {
@ -509,3 +515,4 @@ async function setSynchronizeAPI() {
}
gantt.render();
}

Loading…
Cancel
Save