add getAllItemsTitle utils method
This commit is contained in:
parent
64f58f4496
commit
cc3931ae9f
2 changed files with 7 additions and 5 deletions
|
@ -41,11 +41,7 @@ pandora.ui.allItems = function(section) {
|
|||
overflow: 'hidden',
|
||||
whiteSpace: 'nowrap'
|
||||
})
|
||||
.html(
|
||||
section == 'items'
|
||||
? Ox._('All {0}', [Ox._(pandora.site.itemName.plural)])
|
||||
: Ox._('{0} ' + Ox.toTitleCase(section), [pandora.site.site.name])
|
||||
)
|
||||
.html(pandora.getAllItemsTitle())
|
||||
.appendTo(that),
|
||||
$items;
|
||||
|
||||
|
|
|
@ -808,6 +808,12 @@ pandora.exitFullscreen = function() {
|
|||
pandora.user.ui.showBrowser && pandora.$ui.contentPanel.size(0, 112 + Ox.UI.SCROLLBAR_SIZE);
|
||||
};
|
||||
|
||||
pandora.getAllItemsTitle = function() {
|
||||
return pandora.user.ui.section == 'items'
|
||||
? Ox._('All {0}', [Ox._(pandora.site.itemName.plural)])
|
||||
: Ox._('{0} ' + Ox.toTitleCase(pandora.user.ui.section), [pandora.site.site.name]);
|
||||
};
|
||||
|
||||
pandora.getClipsItems = function(width) {
|
||||
width = width || window.innerWidth
|
||||
- pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize - 1
|
||||
|
|
Loading…
Reference in a new issue