I need to redirect when clicking ‘+’ button.
i am done…
What my issue is,
When clicking + button it creates NewTask from ClientSide without doing anything.
phaseGantt.attachEvent(“onBeforeTaskAdd”, function (id, item) {
return false;
})
phaseGantt.attachEvent("onBeforeLightbox", function (id) {
var projName = document.getElementById('lblProjectName');
var projID = window.location.search.split("?")[1].split("=")[1];
window.location.href = _spPageContextInfo.webAbsoluteUrl +
'/Pages/AddPhases.aspx?parentTask=' + phaseGantt.getTask(id).parent +
'&&projID=' + projID +
'&&projName=' + projName.textContent;;
return false;
});
I need to avoid creating NewTask by + button automatically…When I refresh it,that created NewTask has been deleted automatically … In which event I need to return false…