specifies the text in the header of the link's "delete" confirm window
link | object | the link object |
gantt.templates.link_description = function(link){
var from = gantt.getTask(link.source),
to = gantt.getTask(link.target),
types = gantt.config.links;
var from_start = link.type == types.start_to_start;
var to_start = link.type == types.finish_to_start ||
link.type == types.start_to_start;
var text = "From <b>" + from.text + "</b> " +(from_start?"Start":"End")+"<br/>";
text += "To <b>" + to.text + "</b> "+ (to_start ? "Start" : "End")+"<br/>";
return text;
};