From 4f6975561ca13ef8e6b733c2933c59f50081aa75 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 2 Mar 2013 10:14:46 +0000 Subject: [PATCH] fix editor -> set poster frame -> update browser icon --- static/js/pandora/editor.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/editor.js b/static/js/pandora/editor.js index 5302d60f..976cda49 100644 --- a/static/js/pandora/editor.js +++ b/static/js/pandora/editor.js @@ -265,9 +265,11 @@ pandora.ui.editor = function(data) { }); function updateBrowser() { - pandora.$ui.browser.find('img[src*="/' + data.id + '/"]').each(function() { + pandora.$ui.browser.find('img[src*="/' + ui.item + '/"]').each(function() { $(this).attr({ - src: '/' + data.id + '/' + ui.icons.slice(0, -1) + '128.jpg?' + Ox.uid() + src: '/' + ui.item + '/' + ( + ui.icons == 'posters' ? 'poster' : 'icon' + ) + '128.jpg?' + Ox.uid() }); }); }