|
|
|
@ -12,6 +12,7 @@ let actionHappen = false;
|
|
|
|
|
let activityName = ""; |
|
|
|
|
let token = getUrlParameter("token"); |
|
|
|
|
let editDurationTriggered = false; |
|
|
|
|
let editEndDateTriggered = false; |
|
|
|
|
if (!token || token == "") { |
|
|
|
|
token = `eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvYXBpLWl1Lm9zcHJvLmlkXC9hcGlcL2xvZ2luIiwiaWF0IjoxNjQ2ODA3OTA4LCJleHAiOjE2NDY4OTQzMDgsIm5iZiI6MTY0NjgwNzkwOCwianRpIjoiNmdtcEx3cjlob1JFZ0hSNSIsInN1YiI6MSwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyJ9.1xB2rvTJ6Edf7l_8jRPOmoMYnf8f59Rd8jJghJ39xps`; |
|
|
|
|
} |
|
|
|
@ -150,6 +151,7 @@ gantt.config.editor_types.end_date = gantt.mixin({
|
|
|
|
|
}, |
|
|
|
|
get_value: function(id, column, node) { |
|
|
|
|
var selectedValue = dateEditor.get_value.apply(this, [id, column, node]); |
|
|
|
|
editEndDateTriggered = true; |
|
|
|
|
return gantt.date.add(selectedValue, 1, "day"); |
|
|
|
|
}, |
|
|
|
|
}, dateEditor); |
|
|
|
@ -158,6 +160,7 @@ gantt.config.editor_types.duration = gantt.mixin({
|
|
|
|
|
get_value: function(id, column, node) { |
|
|
|
|
var old_value = gantt.getTask(id); |
|
|
|
|
var modifiedValue = durationEditor.get_value.apply(this, [id, column, node]); |
|
|
|
|
editEndDateTriggered = true; |
|
|
|
|
if(old_value.duration == modifiedValue - 1){ |
|
|
|
|
editDurationTriggered = true; |
|
|
|
|
return modifiedValue; |
|
|
|
|