diff --git a/ganttzk/src/main/resources/web/js/ganttz/TaskComponent.js b/ganttzk/src/main/resources/web/js/ganttz/TaskComponent.js index 4a803d8e1..86de72579 100644 --- a/ganttzk/src/main/resources/web/js/ganttz/TaskComponent.js +++ b/ganttzk/src/main/resources/web/js/ganttz/TaskComponent.js @@ -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); diff --git a/ganttzk/src/main/resources/web/js/ganttz/TaskList.js b/ganttzk/src/main/resources/web/js/ganttz/TaskList.js index 309afa191..307902894 100644 --- a/ganttzk/src/main/resources/web/js/ganttz/TaskList.js +++ b/ganttzk/src/main/resources/web/js/ganttz/TaskList.js @@ -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)