From 89296dd35602331a7b2d16a4d373811a03f85efd Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 21 Jan 2012 00:34:48 +0530 Subject: [PATCH] update pad.ma info view --- static/js/pandora/infoView.padma.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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++; } });