forked from 0x2620/pandora
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',
|
overflow: 'hidden',
|
||||||
whiteSpace: 'nowrap'
|
whiteSpace: 'nowrap'
|
||||||
})
|
})
|
||||||
.html(
|
.html(pandora.getAllItemsTitle())
|
||||||
section == 'items'
|
|
||||||
? Ox._('All {0}', [Ox._(pandora.site.itemName.plural)])
|
|
||||||
: Ox._('{0} ' + Ox.toTitleCase(section), [pandora.site.site.name])
|
|
||||||
)
|
|
||||||
.appendTo(that),
|
.appendTo(that),
|
||||||
$items;
|
$items;
|
||||||
|
|
||||||
|
|
|
@ -808,6 +808,12 @@ pandora.exitFullscreen = function() {
|
||||||
pandora.user.ui.showBrowser && pandora.$ui.contentPanel.size(0, 112 + Ox.UI.SCROLLBAR_SIZE);
|
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) {
|
pandora.getClipsItems = function(width) {
|
||||||
width = width || window.innerWidth
|
width = width || window.innerWidth
|
||||||
- pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize - 1
|
- pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize - 1
|
||||||
|
|
Loading…
Reference in a new issue