fix folder lists

This commit is contained in:
rolux 2013-03-03 11:40:09 +05:30
parent 541de3b558
commit d5875c1ad4
4 changed files with 8 additions and 3 deletions

View File

@ -72,7 +72,7 @@ pandora.ui.allItems = function() {
}, function(result) {
that.update(result.data.items);
});
} else if (pandora.user.ui.section == 'text') {
} else if (pandora.user.ui.section == 'texts') {
Ox.Button({
style: 'symbol',
title: 'file',

View File

@ -70,7 +70,9 @@ pandora.ui.folderBrowserList = function(id) {
},
{
clickable: function(data) {
return data.type == 'smart' || data.user == pandora.user.username;
return pandora.user.ui.section == 'items' && (
data.type == 'smart' || data.user == pandora.user.username
);
},
format: function(value, data) {
return $('<img>')

View File

@ -76,7 +76,9 @@ pandora.ui.folderList = function(id) {
},
{
clickable: function(data) {
return data.type == 'smart' || data.user == pandora.user.username;
return pandora.user.ui.section == 'items' && (
data.type == 'smart' || data.user == pandora.user.username
);
},
format: function(value, data) {
return $('<img>')

View File

@ -1236,6 +1236,7 @@ pandora.resizeFolders = function() {
pandora.user.ui.section == 'items' ? 96 : 32
),
columnWidth = {};
Ox.print('WIDTH:::', width)
columnWidth.user = Math.round(width * 0.4);
columnWidth.name = width - columnWidth.user;
pandora.$ui.allItems.resizeElement(width - 8);