include 'All Movies' in document.title

This commit is contained in:
rolux 2014-02-03 09:17:55 +05:30
parent a7d11d04f2
commit 7e40b3ab02

View file

@ -926,20 +926,34 @@ pandora.getClipVideos = function(clip, resolution) {
pandora.getDocumentTitle = function(itemData) { pandora.getDocumentTitle = function(itemData) {
var parts = []; var parts = [];
if (itemData) { if (itemData) {
itemTitles[pandora.user.ui.item] = Ox.decodeHTMLEntities(pandora.getItemTitle(itemData)); itemTitles[pandora.user.ui.item] = Ox.decodeHTMLEntities(
pandora.getItemTitle(itemData)
);
} }
if (pandora.user.ui.section == 'items') { if (pandora.user.ui.section == 'items') {
if (!pandora.user.ui.item) { if (!pandora.user.ui.item) {
pandora.user.ui._list && parts.push(Ox._('List') + ' ' + pandora.user.ui._list); parts.push(
pandora.user.ui._list
? Ox._('List') + ' ' + pandora.user.ui._list
: pandora.getAllItemsTitle('items')
);
parts.push(Ox._(Ox.toTitleCase(pandora.user.ui.listView) + ' View')); parts.push(Ox._(Ox.toTitleCase(pandora.user.ui.listView) + ' View'));
} else { } else {
parts.push(itemTitles[pandora.user.ui.item] || pandora.user.ui.item); parts.push(itemTitles[pandora.user.ui.item] || pandora.user.ui.item);
parts.push(Ox._(Ox.toTitleCase(pandora.user.ui.itemView) + ' View')); parts.push(Ox._(Ox.toTitleCase(pandora.user.ui.itemView) + ' View'));
} }
} else if (pandora.user.ui.section == 'edits') { } else if (pandora.user.ui.section == 'edits') {
parts.push(pandora.user.ui.edit ? Ox._('Edit{noun}', {noun: ''}) + ' ' + pandora.user.ui.edit : Ox._('Edits')); parts.push(
pandora.user.ui.edit
? Ox._('Edit{noun}', {noun: ''}) + ' ' + pandora.user.ui.edit
: Ox._('Edits')
);
} else if (pandora.user.ui.section == 'texts') { } else if (pandora.user.ui.section == 'texts') {
parts.push(pandora.user.ui.text ? Ox._('Text') + ' ' + pandora.user.ui.text : Ox._('Texts')); parts.push(
pandora.user.ui.text
? Ox._('Text') + ' ' + pandora.user.ui.text
: Ox._('Texts')
);
} }
parts.push(pandora.site.site.name); parts.push(pandora.site.site.name);
return parts.join(' '); return parts.join(' ');