forked from 0x2620/pandora
display clip count in list of edits
This commit is contained in:
parent
d91114d343
commit
8652d2e230
3 changed files with 6 additions and 6 deletions
|
@ -5,7 +5,7 @@ pandora.ui.folderBrowserList = function(id, section) {
|
||||||
// but resizeFolders will set them to different widths
|
// but resizeFolders will set them to different widths
|
||||||
section = pandora.user.ui.section;
|
section = pandora.user.ui.section;
|
||||||
var ui = pandora.user.ui,
|
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),
|
i = Ox.getIndexById(pandora.site.sectionFolders[section], id),
|
||||||
folderItems = section == 'items' ? 'Lists' : Ox.toTitleCase(section),
|
folderItems = section == 'items' ? 'Lists' : Ox.toTitleCase(section),
|
||||||
folderItem = folderItems.slice(0, -1),
|
folderItem = folderItems.slice(0, -1),
|
||||||
|
@ -66,7 +66,7 @@ pandora.ui.folderBrowserList = function(id, section) {
|
||||||
format: {type: 'number'},
|
format: {type: 'number'},
|
||||||
operator: '-',
|
operator: '-',
|
||||||
title: Ox._('Items'),
|
title: Ox._('Items'),
|
||||||
visible: section == 'items',
|
visible: section != 'texts',
|
||||||
width: 48
|
width: 48
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -50,7 +50,7 @@ pandora.ui.folderList = function(id, section) {
|
||||||
visible: id == 'favorite',
|
visible: id == 'favorite',
|
||||||
// fixme: user and name are set to the same width here,
|
// fixme: user and name are set to the same width here,
|
||||||
// but resizeFolders will set them to different widths
|
// 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) {
|
editable: function(data) {
|
||||||
|
@ -69,14 +69,14 @@ pandora.ui.folderList = function(id, section) {
|
||||||
return Ox.decodeHTMLEntities(value);
|
return Ox.decodeHTMLEntities(value);
|
||||||
},
|
},
|
||||||
visible: id != 'favorite',
|
visible: id != 'favorite',
|
||||||
width: ui.sidebarWidth - (section == 'items' ? 96 : 48)
|
width: ui.sidebarWidth - (section != 'texts' ? 96 : 48)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'right',
|
align: 'right',
|
||||||
id: 'items',
|
id: 'items',
|
||||||
format: {type: 'number'},
|
format: {type: 'number'},
|
||||||
operator: '-',
|
operator: '-',
|
||||||
visible: section == 'items',
|
visible: section != 'texts',
|
||||||
width: 48
|
width: 48
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1996,7 +1996,7 @@ pandora.resizeFilters = function(width) {
|
||||||
pandora.resizeFolders = function(section) {
|
pandora.resizeFolders = function(section) {
|
||||||
section = section || pandora.user.ui.section;
|
section = section || pandora.user.ui.section;
|
||||||
var width = pandora.getFoldersWidth(section),
|
var width = pandora.getFoldersWidth(section),
|
||||||
columnWidth = width - (section == 'items' ? 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(columnWidth - 8);
|
||||||
|
|
Loading…
Reference in a new issue