check if the project has the userMetadata
This commit is contained in:
parent
c2db998b93
commit
1ad40bcd83
@ -108,6 +108,8 @@ Refine.OpenProjectUI.prototype._renderProjects = function(data) {
|
|||||||
var project = data.projects[n];
|
var project = data.projects[n];
|
||||||
project.id = n;
|
project.id = n;
|
||||||
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") {
|
||||||
for (var n in data.customMetadataColumns) {
|
for (var n 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++) {
|
||||||
@ -125,6 +127,7 @@ Refine.OpenProjectUI.prototype._renderProjects = function(data) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
projects.push(project);
|
projects.push(project);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
}
|
}
|
||||||
|
|
||||||
#metadata-body td {
|
#metadata-body td {
|
||||||
padding: 8px
|
padding: 1px
|
||||||
}
|
}
|
||||||
|
|
||||||
#metadata-body tr:nth-child(even) {background: #f2f2f2}
|
#metadata-body tr:nth-child(even) {background: #f2f2f2}
|
||||||
|
Loading…
Reference in New Issue
Block a user