Merge pull request #7938 from netchampfaris/task-list

[gantt] show task project in popup
This commit is contained in:
Nabin Hait 2017-03-07 19:41:52 +05:30 committed by GitHub
commit 1af471a16f

View File

@ -23,6 +23,12 @@ frappe.listview_settings['Task'] = {
"Cancelled": "dark grey"
}
return [__(doc.status), colors[doc.status], "status,=," + doc.status];
},
gantt_custom_popup_html: function(ganttobj, task) {
var html = `<h5>${ganttobj.name}</h5>`;
if(task.project) html += `<p>Project: ${task.project}</p>`;
html += `<p>Progress: ${ganttobj.progress}</p>`;
return html;
}
};