cosmetic changes

This commit is contained in:
rolux 2013-03-02 14:41:14 +05:30
parent b65c971314
commit c9737d2ded

View file

@ -3,6 +3,7 @@
pandora.ui.infoView = function(data) { pandora.ui.infoView = function(data) {
var ui = pandora.user.ui, var ui = pandora.user.ui,
browserImages = [],
canEdit = pandora.site.capabilities.canEditMetadata[pandora.user.level], canEdit = pandora.site.capabilities.canEditMetadata[pandora.user.level],
canRemove = pandora.site.capabilities.canRemoveItems[pandora.user.level], canRemove = pandora.site.capabilities.canRemoveItems[pandora.user.level],
css = { css = {
@ -144,9 +145,7 @@ pandora.ui.infoView = function(data) {
$editMenu, $editMenu,
$capabilities, $capabilities;
$browserImages = [];
// Title ------------------------------------------------------------------- // Title -------------------------------------------------------------------
@ -436,10 +435,10 @@ pandora.ui.infoView = function(data) {
if (Ox.contains(['title', 'director', 'year'], key)) { if (Ox.contains(['title', 'director', 'year'], key)) {
pandora.clearIconCache(data.id); pandora.clearIconCache(data.id);
if (ui.icons == 'posters') { if (ui.icons == 'posters') {
if ($browserImages.length == 0) { if (browserImages.length == 0) {
$browserImages = pandora.$ui.browser.find('img[src*="/' + data.id + '/"]'); browserImages = pandora.$ui.browser.find('img[src*="/' + data.id + '/"]');
} }
$browserImages.each(function() { browserImages.each(function() {
$(this).attr({ $(this).attr({
src: '/' + data.id + '/poster128.jpg?' + Ox.uid() src: '/' + data.id + '/poster128.jpg?' + Ox.uid()
}); });