diff --git a/static/js/allItems.js b/static/js/allItems.js index 5846cc9d..11fee5d7 100644 --- a/static/js/allItems.js +++ b/static/js/allItems.js @@ -89,7 +89,6 @@ pandora.ui.allItems = function(section) { }, function(result) { that.update(result.data.items); }); - } else if (section == 'edits') { } else if (section == 'texts') { $buttons[0] = Ox.Button({ style: 'symbol', diff --git a/static/js/utils.js b/static/js/utils.js index 0af936ff..51561086 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -2028,7 +2028,11 @@ pandora.resizeFolders = function(section) { columnWidth = width - (section != 'texts' ? 96 : 48), userColumnWidth = Math.round(columnWidth * 0.4), nameColumnWidth = columnWidth - userColumnWidth; - pandora.$ui.allItems && pandora.$ui.allItems.resizeElement(columnWidth - 8); + pandora.$ui.allItems && pandora.$ui.allItems.resizeElement(( + section == 'items' ? columnWidth + : section == 'edits' ? width - 16 + : width - 48 + ) - 8); Ox.forEach(pandora.$ui.folderList, function($list, id) { var pos = Ox.getIndexById(pandora.site.sectionFolders[section], id); pandora.$ui.folder[pos].css({width: width + 'px'});