cosmatic changes for codacy

This commit is contained in:
Jacky 2017-11-17 17:14:19 -05:00
parent 428d944e4d
commit b83961d2c6
2 changed files with 6 additions and 5 deletions

View File

@ -7,8 +7,9 @@ function EditMetadataDialog(metaData, targetRowElem) {
this._MetadataUI = function(tr, key, value, project) {
var self = this;
if (key === "date")
if (key === "date") {
return;
}
var td0 = tr.insertCell(0);

View File

@ -110,17 +110,17 @@ Refine.OpenProjectUI.prototype._renderProjects = function(data) {
project.date = moment(project.modified).format('YYYY-MM-DD HH:mm A');
if (typeof project.userMetadata !== "undefined") {
for (var n in data.customMetadataColumns) {
for (var m in data.customMetadataColumns) {
var found = false;
for(var i = 0; i < project.userMetadata.length; i++) {
if (project.userMetadata[i].name === data.customMetadataColumns[n].name) {
if (project.userMetadata[i].name === data.customMetadataColumns[m].name) {
found = true;
break;
}
if (!found) {
project.userMetadata.push({
name: data.customMetadataColumns[n].name,
dispay: data.customMetadataColumns[n].display,
name: data.customMetadataColumns[m].name,
dispay: data.customMetadataColumns[m].display,
value: ""
});
}