Browse Source

change url

pull/1/head
farhantock 1 year ago
parent
commit
22da105f34
  1. 36
      edit-mode/function/ganttSettings.js

36
edit-mode/function/ganttSettings.js

@ -128,7 +128,7 @@ $(document).ready(function () {
});
$("#dashboard-project").on('click', function (event) {
window.location.href = `https://adw.ospro.id/#/dashboard-project/${projectId}/${ganttId}`;
window.location.href = `https://project.ospro.id/#/dashboard-project/${projectId}/${ganttId}`;
});
$("#gantt-baseline").on('click', function (event) {
@ -448,24 +448,24 @@ function setSynchronize() {
}
function updateSchedule() {
$("body").addClass("loading");
return gantt.ajax.get({
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer ${token}`
},
url: base_url + "activity/update-schedule/" + ganttId
}).then(function (response) {
$("body").removeClass("loading");
$("body").addClass("loading");
return gantt.ajax.get({
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer ${token}`
},
url: base_url + "activity/update-schedule/" + ganttId
}).then(function (response) {
$("body").removeClass("loading");
window.location.reload();
}).catch(function (error) {
$("body").removeClass("loading")
gantt.alert({
title: "Peringatan",
type: "alert-error",
text: "Update activity gagal"
});
});
}).catch(function (error) {
$("body").removeClass("loading")
gantt.alert({
title: "Peringatan",
type: "alert-error",
text: "Update activity gagal"
});
});
}
async function setSynchronizeAPI() {

Loading…
Cancel
Save