|
|
|
@ -11,6 +11,7 @@ let activityId = 0;
|
|
|
|
|
let actionHappen = false; |
|
|
|
|
let activityName = ""; |
|
|
|
|
let token = getUrlParameter("token"); |
|
|
|
|
let editDurationTriggered = false; |
|
|
|
|
if (!token || token == "") { |
|
|
|
|
token = `eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvYXBpLWl1Lm9zcHJvLmlkXC9hcGlcL2xvZ2luIiwiaWF0IjoxNjQ2ODA3OTA4LCJleHAiOjE2NDY4OTQzMDgsIm5iZiI6MTY0NjgwNzkwOCwianRpIjoiNmdtcEx3cjlob1JFZ0hSNSIsInN1YiI6MSwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyJ9.1xB2rvTJ6Edf7l_8jRPOmoMYnf8f59Rd8jJghJ39xps`; |
|
|
|
|
} |
|
|
|
@ -155,7 +156,12 @@ gantt.config.editor_types.end_date = gantt.mixin({
|
|
|
|
|
var durationEditor = gantt.config.editor_types.duration; |
|
|
|
|
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]); |
|
|
|
|
if(old_value.duration == modifiedValue - 1){ |
|
|
|
|
editDurationTriggered = true; |
|
|
|
|
return modifiedValue; |
|
|
|
|
} |
|
|
|
|
return modifiedValue - 1; |
|
|
|
|
}, |
|
|
|
|
}, durationEditor); |
|
|
|
|