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();
|
jq('#'+ this.uuid + ' .task-resources').hide();
|
||||||
},
|
},
|
||||||
showLabels : function(){
|
showLabels : function(){
|
||||||
jq('.task-labels',this.$n()).show();
|
jq('#'+ this.uuid + ' .task-labels').show();
|
||||||
},
|
},
|
||||||
hideLabels : function(){
|
hideLabels : function(){
|
||||||
jq('.task-labels',this.$n()).hide();
|
jq('#'+ this.uuid + ' .task-labels').hide();
|
||||||
},
|
},
|
||||||
setClass : function(cssClass){
|
setClass : function(cssClass){
|
||||||
jq(this.$n()).removeClass().addClass(cssClass);
|
jq(this.$n()).removeClass().addClass(cssClass);
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,8 @@ ganttz.TaskList = zk.$extends(zk.Widget, {
|
||||||
child.showLabels();
|
child.showLabels();
|
||||||
},
|
},
|
||||||
hideAllTaskLabels : function(){
|
hideAllTaskLabels : function(){
|
||||||
jq('.task-labels').css('display','none');
|
for(var child = this.firstChild; child; child = child.nextSibling)
|
||||||
|
child.hideLabels();
|
||||||
},
|
},
|
||||||
showResourceTooltips : function(){
|
showResourceTooltips : function(){
|
||||||
for(var child = this.firstChild; child; child = child.nextSibling)
|
for(var child = this.firstChild; child; child = child.nextSibling)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue