dont show empty groups on info page

This commit is contained in:
j 2012-02-24 02:27:34 +05:30
parent fcf1b706da
commit 76229574bc

View file

@ -422,7 +422,7 @@ pandora.ui.infoView = function(data) {
// User and Groups ---------------------------------------------------------
['user', 'groups'].forEach(function(key) {
(canEdit || data[key]) && $('<div>')
(canEdit || data[key] && data[key].length) && $('<div>')
.css({marginBottom: '4px'})
.append(formatKey(key, true))
.append(