diff --git a/static/js/pandora/allItems.js b/static/js/pandora/allItems.js index 66edf07dc..23d27edde 100644 --- a/static/js/pandora/allItems.js +++ b/static/js/pandora/allItems.js @@ -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; diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index c000b4619..e57e47702 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -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