diff --git a/static/js/pandora/allItems.js b/static/js/pandora/allItems.js index f794ebf94..fd2db9c54 100644 --- a/static/js/pandora/allItems.js +++ b/static/js/pandora/allItems.js @@ -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', diff --git a/static/js/pandora/folderBrowserList.js b/static/js/pandora/folderBrowserList.js index 3635c25dc..4a16da2e3 100644 --- a/static/js/pandora/folderBrowserList.js +++ b/static/js/pandora/folderBrowserList.js @@ -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 $('') diff --git a/static/js/pandora/folderList.js b/static/js/pandora/folderList.js index a1ead529d..1a2e2cbee 100644 --- a/static/js/pandora/folderList.js +++ b/static/js/pandora/folderList.js @@ -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 $('') diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index 550b01d0c..913672b1f 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -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);