fix folder lists
This commit is contained in:
parent
d5875c1ad4
commit
1483ab182f
2 changed files with 5 additions and 5 deletions
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue