[Bug #1141] Added setter for left attribute of TaskComponent which updates the dependencies.
FEA: ItEr75S04BugFixing
This commit is contained in:
parent
5411f35444
commit
33aada4540
1 changed files with 15 additions and 1 deletions
|
|
@ -60,7 +60,13 @@ ganttz.TaskComponent = zk.$extends(zul.Widget, {
|
|||
$define :{
|
||||
resourcesText : null,
|
||||
labelsText : null,
|
||||
tooltipText : null
|
||||
tooltipText : null,
|
||||
left: function() {
|
||||
this.$supers('setLeft', arguments);
|
||||
this._getRelatedDependencies().forEach(function(dependency) {
|
||||
dependency.draw();
|
||||
});
|
||||
}
|
||||
},
|
||||
$init : function(){
|
||||
this.$supers('$init', arguments);
|
||||
|
|
@ -114,6 +120,14 @@ ganttz.TaskComponent = zk.$extends(zul.Widget, {
|
|||
consolidateNewDependency : function(task){
|
||||
zAu.send(new zk.Event(this, 'onAddDependency', {dependencyId : task.id}));
|
||||
},
|
||||
_getRelatedDependencies: function() {
|
||||
return jq('.dependency[idtaskorig='+ this.uuid + ']')
|
||||
.add('.dependency[idtaskend='+ this.uuid + ']')
|
||||
.get()
|
||||
.map(function(dep) {
|
||||
return ganttz.DependencyComponentBase.$(dep);
|
||||
});
|
||||
},
|
||||
_addDragDrop : function(){
|
||||
var dragdropregion = this._getDragDropRegion();
|
||||
var thisTaskId = this.$n().id;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue