"onAfterTaskDelete" does not trigger "onAfterLinkDelete"


Here is my scenario

I have 3 tasks a,b,c linked together [a to b] and [b to c]. If I delete Task b, both links are deleted, which is good but unfortunately the "“onAfterLinkDelete” event is not triggered when the links are removed.

You can see a video of the scenario at - screencast.com/t/KayGfmGkaTI

How can I know when links are deleted as a result of a task delete action?


when task is deleted, gantt deletes the related links without triggering the api events.
In order to detect deletion of links in this case, you can use onBeforeTaskDelete events
docs.dhtmlx.com/gantt/api__gantt … event.html

[code]gantt.attachEvent(“onBeforeTaskDelete”, function(id,item){
if(item.$source.length || item.$target.length){
//task has ingoing or outgoing links
// ids are stored in task.$source and task.$target arrays

return true;