[Bug #1215] Store the resources tooltip hidden/shown state in the TaskRow widget and use that state when redrawing the TaskComponents.

FEA: ItEr75S04BugFixing
This commit is contained in:
Jacobo Aragunde Pérez 2011-11-02 13:38:02 +01:00
parent 0633c104b5
commit 2cc9fb6371
2 changed files with 5 additions and 1 deletions

View file

@ -10,10 +10,13 @@ ganttz.TaskRow = zk.$extends(zk.Widget, {
this._labelsHidden = true;
this.firstChild.hideLabels();
},
_resourcesHidden : true,
hideResourceTooltip : function(){
this._resourcesHidden = true;
this.firstChild.hideResourceTooltip();
},
showResourceTooltip : function(){
this._resourcesHidden = false;
this.firstChild.showResourceTooltip();
}
});

View file

@ -6,7 +6,8 @@ function(out){
out.push('<div class="task-labels" ',
this.parent._labelsHidden?'>':'style="display:block;">',
this.getLabelsText(),'</div>');
out.push('<div class="task-resources">');
out.push('<div class="task-resources" ',
this.parent._resourcesHidden?'>':'style="display:block;">');
out.push('<div class="task-resources-inner">', this.getResourcesText(),'</div>');
out.push('</div>');