From ef9fca59580097104d5ec0c6e79721b36c37c38e Mon Sep 17 00:00:00 2001 From: wahyu Date: Wed, 27 Dec 2023 18:54:05 +0700 Subject: [PATCH] fix default check and zoom level --- view-mode/function/function.js | 1 + view-mode/function/ganttSettings.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/view-mode/function/function.js b/view-mode/function/function.js index 07ac9dc..9fa8536 100644 --- a/view-mode/function/function.js +++ b/view-mode/function/function.js @@ -241,6 +241,7 @@ function initialProperty() let data = result.data; if(data.status && data.status=="not have"){ toggleCollapseTasks(); + gantt.ext.zoom.setLevel("month"); }else{ if(data.id){ userToVersionGanttId = data.id diff --git a/view-mode/function/ganttSettings.js b/view-mode/function/ganttSettings.js index 4cb0c48..3872a95 100644 --- a/view-mode/function/ganttSettings.js +++ b/view-mode/function/ganttSettings.js @@ -239,7 +239,7 @@ async function initHolidays(){ async function initGanttSettings() { console.log('initGanttSettings'); // if zoom is day - $("#scale1").attr('checked', true); + $("#scale3").attr('checked', true); // toggleCollapseTasks(); // init to gantt chart view (holidays)