From c9737d2ded18a2b68eba40f3490c8c8acabd48f2 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 2 Mar 2013 14:41:14 +0530 Subject: [PATCH] cosmetic changes --- static/js/pandora/infoView.indiancinema.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/static/js/pandora/infoView.indiancinema.js b/static/js/pandora/infoView.indiancinema.js index a4c78697..55432d32 100644 --- a/static/js/pandora/infoView.indiancinema.js +++ b/static/js/pandora/infoView.indiancinema.js @@ -3,6 +3,7 @@ pandora.ui.infoView = function(data) { var ui = pandora.user.ui, + browserImages = [], canEdit = pandora.site.capabilities.canEditMetadata[pandora.user.level], canRemove = pandora.site.capabilities.canRemoveItems[pandora.user.level], css = { @@ -144,9 +145,7 @@ pandora.ui.infoView = function(data) { $editMenu, - $capabilities, - - $browserImages = []; + $capabilities; // Title ------------------------------------------------------------------- @@ -436,10 +435,10 @@ pandora.ui.infoView = function(data) { if (Ox.contains(['title', 'director', 'year'], key)) { pandora.clearIconCache(data.id); if (ui.icons == 'posters') { - if ($browserImages.length == 0) { - $browserImages = pandora.$ui.browser.find('img[src*="/' + data.id + '/"]'); + if (browserImages.length == 0) { + browserImages = pandora.$ui.browser.find('img[src*="/' + data.id + '/"]'); } - $browserImages.each(function() { + browserImages.each(function() { $(this).attr({ src: '/' + data.id + '/poster128.jpg?' + Ox.uid() });