don't truncate 'all edits' text

This commit is contained in:
rolux 2014-02-09 12:37:33 +00:00
parent 0cbee58499
commit 0cc7e70090
2 changed files with 5 additions and 2 deletions

View file

@ -89,7 +89,6 @@ pandora.ui.allItems = function(section) {
}, function(result) { }, function(result) {
that.update(result.data.items); that.update(result.data.items);
}); });
} else if (section == 'edits') {
} else if (section == 'texts') { } else if (section == 'texts') {
$buttons[0] = Ox.Button({ $buttons[0] = Ox.Button({
style: 'symbol', style: 'symbol',

View file

@ -2028,7 +2028,11 @@ pandora.resizeFolders = function(section) {
columnWidth = width - (section != 'texts' ? 96 : 48), columnWidth = width - (section != 'texts' ? 96 : 48),
userColumnWidth = Math.round(columnWidth * 0.4), userColumnWidth = Math.round(columnWidth * 0.4),
nameColumnWidth = columnWidth - userColumnWidth; 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) { Ox.forEach(pandora.$ui.folderList, function($list, id) {
var pos = Ox.getIndexById(pandora.site.sectionFolders[section], id); var pos = Ox.getIndexById(pandora.site.sectionFolders[section], id);
pandora.$ui.folder[pos].css({width: width + 'px'}); pandora.$ui.folder[pos].css({width: width + 'px'});