From ebac1930edd583bc0a60476c8fc3f30e40055ddc Mon Sep 17 00:00:00 2001 From: Wahyu Ramadhan Date: Thu, 8 Jun 2023 17:22:32 +0700 Subject: [PATCH] Quick fix --- edit-mode/function/ganttConfig.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edit-mode/function/ganttConfig.js b/edit-mode/function/ganttConfig.js index f5662bf..f542492 100644 --- a/edit-mode/function/ganttConfig.js +++ b/edit-mode/function/ganttConfig.js @@ -349,7 +349,8 @@ var allColumns = [ } }, // { name: "status", label: "Status", align: "center", editor: editor.status, resize: true }, { name: "bobot_planning", label: "Bobot Activity (%)", align: "center", editor: editor.bobot_planning, resize: true, min_width: 115, template: function (text) { - if(text.bobot_planning.toFixed(2) > 100){ + let bobot = parseFloat(text.bobot_planning); + if(bobot.toFixed(2) > 100){ gantt.alert("Bobot tidak boleh lebih dari 100%!"); return; }