diff --git a/static/js/pandora/infoView.padma.js b/static/js/pandora/infoView.padma.js index 491d743f..fd693c34 100644 --- a/static/js/pandora/infoView.padma.js +++ b/static/js/pandora/infoView.padma.js @@ -139,11 +139,11 @@ pandora.ui.infoView = function(data) { // Source & Project -------------------------------------------------------- + var count = 0; ['source', 'project'].forEach(function(key) { - - var $div = $('
').appendTo($data), - value = data[key] || ''; - if (canEdit || value) { + var $div = $('
').appendTo($data) + if (canEdit || data[key]) { + count && $('
').appendTo($div); $('
') .css({float: 'left'}) .html( @@ -200,6 +200,7 @@ pandora.ui.infoView = function(data) { }) .appendTo($div); } + count++; } });