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) { this._MetadataUI = function(tr, key, value, project) {
var self = this; var self = this;
if (key === "date") if (key === "date") {
return; return;
}
var td0 = tr.insertCell(0); 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'); project.date = moment(project.modified).format('YYYY-MM-DD HH:mm A');
if (typeof project.userMetadata !== "undefined") { if (typeof project.userMetadata !== "undefined") {
for (var n in data.customMetadataColumns) { for (var m in data.customMetadataColumns) {
var found = false; var found = false;
for(var i = 0; i < project.userMetadata.length; i++) { 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; found = true;
break; break;
} }
if (!found) { if (!found) {
project.userMetadata.push({ project.userMetadata.push({
name: data.customMetadataColumns[n].name, name: data.customMetadataColumns[m].name,
dispay: data.customMetadataColumns[n].display, dispay: data.customMetadataColumns[m].display,
value: "" value: ""
}); });
} }