update pad.ma info view

This commit is contained in:
rolux 2012-01-21 00:34:48 +05:30
parent 7d17f387b5
commit 89296dd356

View file

@ -139,11 +139,11 @@ pandora.ui.infoView = function(data) {
// Source & Project -------------------------------------------------------- // Source & Project --------------------------------------------------------
var count = 0;
['source', 'project'].forEach(function(key) { ['source', 'project'].forEach(function(key) {
var $div = $('<div>').appendTo($data)
var $div = $('<div>').appendTo($data), if (canEdit || data[key]) {
value = data[key] || ''; count && $('<br>').appendTo($div);
if (canEdit || value) {
$('<div>') $('<div>')
.css({float: 'left'}) .css({float: 'left'})
.html( .html(
@ -200,6 +200,7 @@ pandora.ui.infoView = function(data) {
}) })
.appendTo($div); .appendTo($div);
} }
count++;
} }
}); });