From 8ccdea90b848d2d3fe27a3cbc41960ad6100df34 Mon Sep 17 00:00:00 2001 From: Muhammad Sulaiman Yusuf Date: Tue, 6 Sep 2022 14:08:36 +0700 Subject: [PATCH] update api endpoint & enable full screen --- src/function/ganttConfig.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/function/ganttConfig.js b/src/function/ganttConfig.js index ddd45a0..dfd728a 100644 --- a/src/function/ganttConfig.js +++ b/src/function/ganttConfig.js @@ -2,8 +2,7 @@ const ganttId = getUrlParameter("gantt_id"); const readOnly = getUrlParameter("ro"); const proyekId = getUrlParameter("proyek_id"); let base_url = getUrlParameter("base_url"); -const adwIntegrationUrl = "http://ospro-api.adyawinsa.com:9083/api/"; -const adwAuthToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIxMjAyIiwiZXhwIjoxNjkxODMwNDkzfQ.DvBQIOZsdFndWsliPCZT65Y6G5Xx4vWBKz8Rhe7rvRA"; +const adwIntegrationUrl = "https://adw-api.ospro.id/api"; let userToVersionGanttId = 0 let activityId = 0; @@ -95,7 +94,8 @@ if (!base_url) { // console.log("cek base url 3",base_url) // gantt plugins gantt.plugins({ - marker: true + marker: true, + fullscreen: true }); // add today line @@ -614,7 +614,7 @@ var zoomConfig = { ] }; gantt.ext.zoom.init(zoomConfig); -gantt.ext.zoom.setLevel("day"); +gantt.ext.zoom.setLevel("month"); // trigger when zoomIn and zoomOut clicked gantt.ext.zoom.attachEvent("onAfterZoom", function(level, config){ @@ -637,6 +637,8 @@ for (var i = 0; i < radios.length; i++) { } // end Zoom Scale function +gantt.config.scroll_size = 100; + // gantt initialization $(document).ready(function () { initializationProject();