resolve conflict

This commit is contained in:
lanzongjun
2022-08-05 08:49:49 +08:00
parent f241846903
commit fa254f518e
3 changed files with 10 additions and 7 deletions
+3 -3
View File
@@ -393,6 +393,8 @@ function exitHandler()
location.reload();
}
}
/* Validate task drag. */
function validateResources(id)
{
var task = gantt.getTask(id);
@@ -704,12 +706,10 @@ $(function()
setTimeout(function(){$('.gantt_tooltip').remove()}, 100);
});
/* Link attachEvent onAfterTaskDrag */
gantt.attachEvent("onBeforeTaskChanged", function(id, mode, task)
{
return validateResources(id);
});
// gantt.attachEvent("onAfterTaskDrag", function (id, mode)
// {
// });
});
</script>