Fixed users tooltip in projects Gantt

This commit is contained in:
Frederic Guillot
2016-05-13 22:44:30 -04:00
parent ae70f47cc1
commit d0da3f66d7
3 changed files with 7 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@@ -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;