ItEr18S08CUCreacionProxectoPlanificacionItEr17S10: When adding the first dependency, it wasn't added as a child of listdependencies. Fixing it.
This commit is contained in:
parent
7d41241bf2
commit
7e0241a15c
1 changed files with 5 additions and 1 deletions
|
|
@ -30,7 +30,11 @@ zkDependency.draw = function(dependency) {
|
|||
}
|
||||
|
||||
zkDependency.init = function(dependency) {
|
||||
zkPlanner.setupArrow(dependency);
|
||||
zkPlanner.setupArrow(dependency);
|
||||
var parent = dependency.parentNode;
|
||||
if(parent.id !== "listdependencies"){
|
||||
document.getElementById("listdependencies").appendChild(dependency);
|
||||
}
|
||||
YAHOO.util.Event.onDOMReady(function() {
|
||||
var origin = zkDependency.origin(dependency);
|
||||
var destination = zkDependency.destination(dependency);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue