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',