Hello.
I’m trying to find a reliable way to forbid only start date modification through UI.
Here my code:
gantt.attachEvent('onBeforeTaskDrag',function(id,mode,e){
var result = true;
if(e.srcElement.className.indexOf('task_left') > - 1 ) {
result = false;
}
return result;
});
But with some mouse positions on the tasks left side, i can drag start date. For those cases,
e.srcElement.className
contains either :
- gantt_task_content
- gantt_task_line ganttTask ganttDesign gantt_selected
Is there another way to forbid drag of task’s start date ?
Thanks