cosmatic changes for codacy
This commit is contained in:
parent
428d944e4d
commit
b83961d2c6
@ -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);
|
||||||
|
|
||||||
|
@ -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: ""
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user