|
|
|
@ -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(); |
|
|
|
|