From 1483ab182f196a8f5eb39784e40b74cd7d596745 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 3 Mar 2013 11:48:29 +0530 Subject: [PATCH] fix folder lists --- static/js/pandora/folderBrowserList.js | 6 +++--- static/js/pandora/folderList.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/static/js/pandora/folderBrowserList.js b/static/js/pandora/folderBrowserList.js index 4a16da2e3..69b466a97 100644 --- a/static/js/pandora/folderBrowserList.js +++ b/static/js/pandora/folderBrowserList.js @@ -4,7 +4,7 @@ pandora.ui.folderBrowserList = function(id) { // fixme: user and name are set to the same width here, // but resizeFolders will set them to different widths var ui = pandora.user.ui, - columnWidth = (ui.sidebarSize - Ox.UI.SCROLLBAR_SIZE - (ui.section == 'items' ? 96 : 32)) / 2, + columnWidth = (ui.sidebarSize - Ox.UI.SCROLLBAR_SIZE - (ui.section == 'items' ? 96 : 48)) / 2, i = Ox.getIndexById(pandora.site.sectionFolders[ui.section], id), folderItems = ui.section == 'items' ? 'Lists' : Ox.toTitleCase(ui.section), folderItem = folderItems.slice(0, -1), @@ -70,7 +70,7 @@ pandora.ui.folderBrowserList = function(id) { }, { clickable: function(data) { - return pandora.user.ui.section == 'items' && ( + return ui.section == 'items' && ( data.type == 'smart' || data.user == pandora.user.username ); }, @@ -88,7 +88,7 @@ pandora.ui.folderBrowserList = function(id) { width: '10px', height: '10px', padding: '3px', - opacity: pandora.user.ui.section == 'items' && data.user == pandora.user.username ? 1 : 0.25 + opacity: ui.section == 'items' && data.user == pandora.user.username ? 1 : 0.25 }); }, id: 'type', diff --git a/static/js/pandora/folderList.js b/static/js/pandora/folderList.js index 1a2e2cbee..3a1d21b63 100644 --- a/static/js/pandora/folderList.js +++ b/static/js/pandora/folderList.js @@ -76,7 +76,7 @@ pandora.ui.folderList = function(id) { }, { clickable: function(data) { - return pandora.user.ui.section == 'items' && ( + return ui.section == 'items' && ( data.type == 'smart' || data.user == pandora.user.username ); }, @@ -94,7 +94,7 @@ pandora.ui.folderList = function(id) { width: '10px', height: '10px', padding: '3px', - opacity: pandora.user.ui.section == 'items' && data.user == pandora.user.username ? 1 : 0.25 + opacity: ui.section == 'items' && data.user == pandora.user.username ? 1 : 0.25 }); }, id: 'type',