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:
parent
181ed61c48
commit
eaa8614f90
2 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue