From 0cc7e7009099dcf0b8cf186ab47d528476882bd4 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 9 Feb 2014 12:37:33 +0000 Subject: [PATCH] don't truncate 'all edits' text --- static/js/allItems.js | 1 - static/js/utils.js | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/static/js/allItems.js b/static/js/allItems.js index 5846cc9d0..11fee5d72 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 0af936ff9..515610861 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'});