diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-13 22:44:30 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-13 22:44:30 -0400 |
commit | d0da3f66d78a2fa480a3af18fe5348d99e051abc (patch) | |
tree | ba96b6ad4294d10a4613ddcbe1a9cb9af999fea8 /assets/js/src | |
parent | ae70f47cc12587414c03b11a377cba97e1f10361 (diff) |
Fixed users tooltip in projects Gantt
Diffstat (limited to 'assets/js/src')
-rw-r--r-- | assets/js/src/Gantt.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/assets/js/src/Gantt.js b/assets/js/src/Gantt.js index 584df087..02005bca 100644 --- a/assets/js/src/Gantt.js +++ b/assets/js/src/Gantt.js @@ -232,7 +232,7 @@ Kanboard.Gantt.prototype.getVerticalHeaderTooltip = function(record) { tooltip = "<strong>" + record.column_title + "</strong> (" + record.progress + ")<br/>" + record.title; } else { - var types = ["managers", "members"]; + var types = ["project-manager", "project-member"]; for (var index in types) { var type = types[index]; @@ -240,7 +240,9 @@ Kanboard.Gantt.prototype.getVerticalHeaderTooltip = function(record) { var list = jQuery("<ul>"); for (var user_id in record.users[type]) { - list.append(jQuery("<li>").append(record.users[type][user_id])); + if (user_id) { + list.append(jQuery("<li>").append(record.users[type][user_id])); + } } tooltip += "<p><strong>" + $(this.options.container).data("label-" + type) + "</strong></p>" + list[0].outerHTML; |