[Bug #1316] Use correct JS selectors to work both with leaf tasks and task groups.

The selectors didn't work correctly with task groups.

FEA: ItEr75S04BugFixing
This commit is contained in:
Jacobo Aragunde Pérez 2011-12-22 13:00:54 +01:00
parent aece422e4c
commit 40ab2f0b76

View file

@ -216,10 +216,10 @@ ganttz.TaskComponent = zk.$extends(zul.Widget, {
jq('#consolidatedline' + this.parent.uuid).css('left', width);
},
resizeCompletionAdvance : function(width){
jq('#' + this.uuid + ' > .completion:first').css('width', width);
jq('#' + this.uuid + ' .completion:first').css('width', width);
},
resizeCompletion2Advance : function(width){
jq('#' + this.uuid + ' > .completion2:first').css('width', width);
jq('#' + this.uuid + ' .completion2:first').css('width', width);
},
showResourceTooltip : function(){
jq('#'+ this.uuid + ' .task-resources').show();