From d7026cc5dc416e3223b63bcddd6d8e2357bcc560 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 4 Oct 2012 11:27:06 +0200 Subject: [PATCH] info view: move release date, budget, rating --- static/js/pandora/infoView.0xdb.js | 62 +++++++++++++++--------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/static/js/pandora/infoView.0xdb.js b/static/js/pandora/infoView.0xdb.js index 7289c0d4..ba8b28c9 100644 --- a/static/js/pandora/infoView.0xdb.js +++ b/static/js/pandora/infoView.0xdb.js @@ -389,6 +389,37 @@ pandora.ui.infoView = function(data) { ) .appendTo($text); + if (data.connections) { + $div = $('
') + .css(css) + .appendTo($text); + html = []; + [ + 'Edited from', 'Edited into', + 'Features', 'Featured in', + 'Follows', 'Followed by', + 'References', 'Referenced in', + 'Remake of', 'Remade as', + 'Spin off from', 'Spin off', + 'Spoofs', 'Spoofed in' + ].forEach(function(key) { + data.connections[key] && html.push( + formatKey(key) + data.connections[key].map(function(connection) { + return ( + connection.item + ? '' + connection.title + '' + : connection.title + ) + ( + connection.description + ? ' ' + formatLight('(' + connection.description + ')') + : '' + ); + }).join(', ') + ); + }); + $div.html(html.join('; ')); + } + data.releasedate && $('
') .css(css) .html( @@ -424,37 +455,6 @@ pandora.ui.infoView = function(data) { $div.html(html.join('; ')); } - if (data.connections) { - $div = $('
') - .css(css) - .appendTo($text); - html = []; - [ - 'Edited from', 'Edited into', - 'Features', 'Featured in', - 'Follows', 'Followed by', - 'References', 'Referenced in', - 'Remake of', 'Remade as', - 'Spin off from', 'Spin off', - 'Spoofs', 'Spoofed in' - ].forEach(function(key) { - data.connections[key] && html.push( - formatKey(key) + data.connections[key].map(function(connection) { - return ( - connection.item - ? '' + connection.title + '' - : connection.title - ) + ( - connection.description - ? ' ' + formatLight('(' + connection.description + ')') - : '' - ); - }).join(', ') - ); - }); - $div.html(html.join('; ')); - } - ['reviews', 'links'].forEach(function(key) { data[key] && $('
') .css(css)