From 385a508358a11bfa088d8eec1c16162c8adbfb64 Mon Sep 17 00:00:00 2001 From: wahyun Date: Mon, 19 Feb 2024 17:13:27 +0700 Subject: [PATCH] update header alert --- edit-mode/function/ganttConfig.js | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/edit-mode/function/ganttConfig.js b/edit-mode/function/ganttConfig.js index b2d1d6d..9654313 100644 --- a/edit-mode/function/ganttConfig.js +++ b/edit-mode/function/ganttConfig.js @@ -114,13 +114,13 @@ var colHeader = '
'; - optionsContent += ' '; - optionsContent += ' '; - optionsContent += ' '; - optionsContent += !hasChild ? ' ' : ''; - optionsContent += !hasChild ? ' ' : ''; - optionsContent += !hasChild ? ' ' : ''; + optionsContent += ' '; + optionsContent += ' '; + optionsContent += ' '; + optionsContent += ' '; + optionsContent += !hasChild ? ' ' : ''; + optionsContent += !hasChild ? ' ' : ''; + optionsContent += !hasChild ? ' ' : ''; optionsContent += '
'; return (optionsContent); }; @@ -238,7 +238,7 @@ function addWithParent(id) { no = no + 1; } -function clickGridButton(id, action) { +function clickGridButton(id, name, action) { switch (action) { case "edit": gantt.showLightbox(id); @@ -257,7 +257,7 @@ function clickGridButton(id, action) { }); break; case "set-baseline-activity": - setBaselineActivity(id); + setBaselineActivity(id, name); break; case "upload": showDocuments(id); @@ -347,10 +347,7 @@ var allColumns = [ { name: "bobot_planning", label: "Bobot (%)", align: "center", editor: editor.bobot_planning, resize: true, min_width: 115, template: function (text) { let bobot = parseFloat(text.bobot_planning); - console.log("bobot roundToTwo ", roundToTwo(bobot)); - console.log("bobot toFixed ", bobot.toFixed(2)); if (bobot.toFixed(2) > 100) { - gantt.alert("Bobot tidak boleh lebih dari 100%!"); return; } @@ -512,9 +509,6 @@ var allColumns = [ name: "progress_actual", label: "Total Actual Progress (%)", align: "center", min_width: 150, template: function (text) { let progress = text.progress progress = progress * 100 - - console.log("progress roundToTwo ", roundToTwo(progress)); - console.log("progress toFixed ", progress.toFixed(2)); if (progress.toFixed(2) > 100) { gantt.alert("Progress tidak boleh lebih dari 100%!"); return;