From 73a885370c635fa8af1d3c34d9c446b412a5d2be Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 29 Sep 2012 18:28:00 +0200 Subject: [PATCH] display connection descriptions (info page) --- static/js/pandora/infoView.0xdb.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/static/js/pandora/infoView.0xdb.js b/static/js/pandora/infoView.0xdb.js index 319796a5..d3240cfe 100644 --- a/static/js/pandora/infoView.0xdb.js +++ b/static/js/pandora/infoView.0xdb.js @@ -439,9 +439,15 @@ pandora.ui.infoView = function(data) { ].forEach(function(key) { data.connections[key] && html.push( formatKey(key) + data.connections[key].map(function(connection) { - return connection.item - ? '' + connection.title + '' - : connection.title; + return ( + connection.item + ? '' + connection.title + '' + : connection.title + ) + ( + connection.description + ? ' (' + formatLight(connection.description) + ')' + : '' + ); }).join(', ') ); });