From 93a9bcb92df2b94fabb1fddd94ffa9d2c8a9f7ca Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 7 Oct 2012 15:25:42 +0200 Subject: [PATCH] change order of paragraphs on 0xdb info page --- static/js/pandora/infoView.0xdb.js | 42 +++++++++++++++--------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/static/js/pandora/infoView.0xdb.js b/static/js/pandora/infoView.0xdb.js index 59c2af9e..5d7bcf2f 100644 --- a/static/js/pandora/infoView.0xdb.js +++ b/static/js/pandora/infoView.0xdb.js @@ -389,6 +389,27 @@ pandora.ui.infoView = function(data) { ) .appendTo($text); + data.releasedate && $('
') + .css(css) + .html( + formatKey('Release Date') + Ox.formatDate(data.releasedate, '%A, %B %e, %Y') + ) + .appendTo($text); + + if (data.budget || data.gross || data.profit) { + $div = $('
') + .css(css) + .appendTo($text); + html = []; + ['budget', 'gross', 'profit'].forEach(function(key) { + data[key] && html.push( + formatKey(key == 'profit' && data[key] < 0 ? 'loss' : key) + + Ox.formatCurrency(Math.abs(data[key]), '$') + ); + }); + $div.html(html.join('; ')); + } + if (data.connections) { $div = $('
') .css(css) @@ -420,27 +441,6 @@ pandora.ui.infoView = function(data) { $div.html(html.join('; ')); } - data.releasedate && $('
') - .css(css) - .html( - formatKey('Release Date') + Ox.formatDate(data.releasedate, '%A, %B %e, %Y') - ) - .appendTo($text); - - if (data.budget || data.gross || data.profit) { - $div = $('
') - .css(css) - .appendTo($text); - html = []; - ['budget', 'gross', 'profit'].forEach(function(key) { - data[key] && html.push( - formatKey(key == 'profit' && data[key] < 0 ? 'loss' : key) - + Ox.formatCurrency(Math.abs(data[key]), '$') - ); - }); - $div.html(html.join('; ')); - } - ['reviews', 'links'].forEach(function(key) { data[key] && $('
') .css(css)