From 2cc9fb63710098a7c8dd939e80fc7ed812d5613e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacobo=20Aragunde=20P=C3=A9rez?= Date: Wed, 2 Nov 2011 13:38:02 +0100 Subject: [PATCH] [Bug #1215] Store the resources tooltip hidden/shown state in the TaskRow widget and use that state when redrawing the TaskComponents. FEA: ItEr75S04BugFixing --- ganttzk/src/main/resources/web/js/ganttz/TaskRow.js | 3 +++ .../src/main/resources/web/js/ganttz/mold/task-component.js | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ganttzk/src/main/resources/web/js/ganttz/TaskRow.js b/ganttzk/src/main/resources/web/js/ganttz/TaskRow.js index c4a85ac6f..1b723f8e4 100644 --- a/ganttzk/src/main/resources/web/js/ganttz/TaskRow.js +++ b/ganttzk/src/main/resources/web/js/ganttz/TaskRow.js @@ -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(); } }); \ No newline at end of file diff --git a/ganttzk/src/main/resources/web/js/ganttz/mold/task-component.js b/ganttzk/src/main/resources/web/js/ganttz/mold/task-component.js index 1c71cbab7..bf8a90ede 100644 --- a/ganttzk/src/main/resources/web/js/ganttz/mold/task-component.js +++ b/ganttzk/src/main/resources/web/js/ganttz/mold/task-component.js @@ -6,7 +6,8 @@ function(out){ out.push('
':'style="display:block;">', this.getLabelsText(),'
'); - out.push('
'); + out.push('
':'style="display:block;">'); out.push('
', this.getResourcesText(),'
'); out.push('
');