Bug #1439: Fix issue changing JavaScript to show/hide labels

As the resources text case was working properly, a similar code has been used
for the labels.

FEA: ItEr76S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2012-06-08 09:20:47 +02:00
parent 181ed61c48
commit eaa8614f90
2 changed files with 4 additions and 3 deletions

View file

@ -231,10 +231,10 @@ ganttz.TaskComponent = zk.$extends(zul.Widget, {
jq('#'+ this.uuid + ' .task-resources').hide();
},
showLabels : function(){
jq('.task-labels',this.$n()).show();
jq('#'+ this.uuid + ' .task-labels').show();
},
hideLabels : function(){
jq('.task-labels',this.$n()).hide();
jq('#'+ this.uuid + ' .task-labels').hide();
},
setClass : function(cssClass){
jq(this.$n()).removeClass().addClass(cssClass);

View file

@ -10,7 +10,8 @@ ganttz.TaskList = zk.$extends(zk.Widget, {
child.showLabels();
},
hideAllTaskLabels : function(){
jq('.task-labels').css('display','none');
for(var child = this.firstChild; child; child = child.nextSibling)
child.hideLabels();
},
showResourceTooltips : function(){
for(var child = this.firstChild; child; child = child.nextSibling)