display clip count in list of edits

This commit is contained in:
rolux 2014-02-08 17:34:12 +00:00
parent d91114d343
commit 8652d2e230
3 changed files with 6 additions and 6 deletions

View file

@ -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
},
{

View file

@ -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
},
{

View file

@ -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);