diff --git a/static/js/folderBrowserList.js b/static/js/folderBrowserList.js index bdc8e405a..ba0d5c32a 100644 --- a/static/js/folderBrowserList.js +++ b/static/js/folderBrowserList.js @@ -5,7 +5,7 @@ pandora.ui.folderBrowserList = function(id, section) { // but resizeFolders will set them to different widths section = pandora.user.ui.section; var ui = pandora.user.ui, - columnWidth = (ui.sidebarSize - Ox.UI.SCROLLBAR_SIZE - (section == 'items' ? 96 : 48)) / 2, + columnWidth = (ui.sidebarSize - Ox.UI.SCROLLBAR_SIZE - (section != 'texts' ? 96 : 48)) / 2, i = Ox.getIndexById(pandora.site.sectionFolders[section], id), folderItems = section == 'items' ? 'Lists' : Ox.toTitleCase(section), folderItem = folderItems.slice(0, -1), @@ -66,7 +66,7 @@ pandora.ui.folderBrowserList = function(id, section) { format: {type: 'number'}, operator: '-', title: Ox._('Items'), - visible: section == 'items', + visible: section != 'texts', width: 48 }, { diff --git a/static/js/folderList.js b/static/js/folderList.js index a50689c9e..44df0686d 100644 --- a/static/js/folderList.js +++ b/static/js/folderList.js @@ -50,7 +50,7 @@ pandora.ui.folderList = function(id, section) { visible: id == 'favorite', // fixme: user and name are set to the same width here, // but resizeFolders will set them to different widths - width: ui.sidebarWidth - (section == 'items' ? 96 : 48) + width: ui.sidebarWidth - (section != 'texts' ? 96 : 48) }, { editable: function(data) { @@ -69,14 +69,14 @@ pandora.ui.folderList = function(id, section) { return Ox.decodeHTMLEntities(value); }, visible: id != 'favorite', - width: ui.sidebarWidth - (section == 'items' ? 96 : 48) + width: ui.sidebarWidth - (section != 'texts' ? 96 : 48) }, { align: 'right', id: 'items', format: {type: 'number'}, operator: '-', - visible: section == 'items', + visible: section != 'texts', width: 48 }, { diff --git a/static/js/utils.js b/static/js/utils.js index 5a028266c..e1dcd3715 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -1996,7 +1996,7 @@ pandora.resizeFilters = function(width) { pandora.resizeFolders = function(section) { section = section || pandora.user.ui.section; var width = pandora.getFoldersWidth(section), - columnWidth = width - (section == 'items' ? 96 : 48), + columnWidth = width - (section != 'texts' ? 96 : 48), userColumnWidth = Math.round(columnWidth * 0.4), nameColumnWidth = columnWidth - userColumnWidth; pandora.$ui.allItems && pandora.$ui.allItems.resizeElement(columnWidth - 8);