fix folder lists

This commit is contained in:
rolux 2013-03-03 11:48:29 +05:30
parent d5875c1ad4
commit 1483ab182f
2 changed files with 5 additions and 5 deletions

View file

@ -4,7 +4,7 @@ pandora.ui.folderBrowserList = function(id) {
// fixme: user and name are set to the same width here, // fixme: user and name are set to the same width here,
// but resizeFolders will set them to different widths // but resizeFolders will set them to different widths
var ui = pandora.user.ui, 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), i = Ox.getIndexById(pandora.site.sectionFolders[ui.section], id),
folderItems = ui.section == 'items' ? 'Lists' : Ox.toTitleCase(ui.section), folderItems = ui.section == 'items' ? 'Lists' : Ox.toTitleCase(ui.section),
folderItem = folderItems.slice(0, -1), folderItem = folderItems.slice(0, -1),
@ -70,7 +70,7 @@ pandora.ui.folderBrowserList = function(id) {
}, },
{ {
clickable: function(data) { clickable: function(data) {
return pandora.user.ui.section == 'items' && ( return ui.section == 'items' && (
data.type == 'smart' || data.user == pandora.user.username data.type == 'smart' || data.user == pandora.user.username
); );
}, },
@ -88,7 +88,7 @@ pandora.ui.folderBrowserList = function(id) {
width: '10px', width: '10px',
height: '10px', height: '10px',
padding: '3px', 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', id: 'type',

View file

@ -76,7 +76,7 @@ pandora.ui.folderList = function(id) {
}, },
{ {
clickable: function(data) { clickable: function(data) {
return pandora.user.ui.section == 'items' && ( return ui.section == 'items' && (
data.type == 'smart' || data.user == pandora.user.username data.type == 'smart' || data.user == pandora.user.username
); );
}, },
@ -94,7 +94,7 @@ pandora.ui.folderList = function(id) {
width: '10px', width: '10px',
height: '10px', height: '10px',
padding: '3px', 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', id: 'type',