diff options
| author | Busfreak <martin@middeke.de> | 2015-12-15 12:00:47 +0100 |
|---|---|---|
| committer | Busfreak <martin@middeke.de> | 2015-12-15 12:00:47 +0100 |
| commit | 16e8241f0f29f0afb9c4ad4c6f68699d62d889ff (patch) | |
| tree | aa0f03c5c1d7897246e513e52c6a1f823709dd3d /assets/js/src/Gantt.js | |
| parent | b834f5475c8eebb76548046558e7d1464cbd01d4 (diff) | |
| parent | 9e1f4fa6c7eae1b46cf5431ab085b82e970e2d57 (diff) | |
Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat (limited to 'assets/js/src/Gantt.js')
| -rw-r--r-- | assets/js/src/Gantt.js | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/assets/js/src/Gantt.js b/assets/js/src/Gantt.js index 380371d1..6f536552 100644 --- a/assets/js/src/Gantt.js +++ b/assets/js/src/Gantt.js @@ -185,7 +185,7 @@ Gantt.prototype.addBlocks = function(slider, start) { var block = jQuery("<div>", { "class": "ganttview-block tooltip" + (this.options.allowMoves ? " ganttview-block-movable" : ""), - "title": this.getBarTooltip(this.data[i]), + "title": this.getBarTooltip(series), "css": { "width": ((size * this.options.cellWidth) - 9) + "px", "margin-left": (offset * this.options.cellWidth) + "px" @@ -193,23 +193,25 @@ Gantt.prototype.addBlocks = function(slider, start) { }).append(text); if (size >= 2) { - text.append(this.data[i].progress); + text.append(series.progress); } - block.data("record", this.data[i]); - this.setBarColor(block, this.data[i]); + block.data("record", series); + this.setBarColor(block, series); - block.append(jQuery("<div>", { - "css": { - "z-index": 0, - "position": "absolute", - "top": 0, - "bottom": 0, - "background-color": series.color.border, - "width": series.progress, - "opacity": 0.4 - } - })); + if (series.progress != "0%") { + block.append(jQuery("<div>", { + "css": { + "z-index": 0, + "position": "absolute", + "top": 0, + "bottom": 0, + "background-color": series.color.border, + "width": series.progress, + "opacity": 0.4 + } + })); + } jQuery(rows[rowIdx]).append(block); rowIdx = rowIdx + 1; |
