Skip to content
Snippets Groups Projects

Resolve "Suggestions for enhancement (v12)"

Merged Piotr Gawron requested to merge 447-suggestions-for-enhancement-v12 into master
5 files
+ 41
7
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -125,6 +125,8 @@ MapsAdminPanel.prototype._createProjectTableRow = function () {
$(projectsTable).DataTable({
columns: [{
title: 'ProjectId'
}, {
title: 'Created'
}, {
title: 'Name'
}, {
@@ -237,10 +239,17 @@ MapsAdminPanel.prototype.projectToTableRow = function (project, row, user) {
}
row[0] = formattedProjectId;
row[1] = project.getName();
row[2] = disease;
row[3] = organism;
row[4] = status;
var date = project.getCreationDate();
if (date === undefined) {
date = "N/A";
} else {
date = date.split(" ")[0];
}
row[1] = date;
row[2] = project.getName();
row[3] = disease;
row[4] = organism;
row[5] = status;
var disabled = " disabled ";
if ((user.hasPrivilege(self.getConfiguration().getPrivilegeType(PrivilegeType.IS_ADMIN)) ||
@@ -249,12 +258,12 @@ MapsAdminPanel.prototype.projectToTableRow = function (project, row, user) {
disabled = "";
}
row[5] = "<button name='showEditDialog' data='" + project.getProjectId() + "'" + disabled + "><i class='fa fa-edit' style='font-size:17px'></i></button>";
row[6] = "<button name='showEditDialog' data='" + project.getProjectId() + "'" + disabled + "><i class='fa fa-edit' style='font-size:17px'></i></button>";
if (self.getConfiguration().getOption(ConfigurationType.DEFAULT_MAP).getValue() === projectId) {
disabled = " disabled ";
}
row[6] = "<button name='removeProject' data='" + project.getProjectId() + "'" + disabled + "><i class='fa fa-trash-o' style='font-size:17px'></button>";
row[7] = "<button name='removeProject' data='" + project.getProjectId() + "'" + disabled + "><i class='fa fa-trash-o' style='font-size:17px'></button>";
return row;
};
Loading