remove leading 'List'/'Text'/'Edit' from document.title

This commit is contained in:
rolux 2014-02-03 09:51:09 +05:30
parent b4fe34f524
commit e881cdb18a

View file

@ -934,7 +934,7 @@ pandora.getClipVideos = function(clip, resolution) {
if (!pandora.user.ui.item) { if (!pandora.user.ui.item) {
parts.push( parts.push(
pandora.user.ui._list pandora.user.ui._list
? Ox._('List') + ' ' + pandora.user.ui._list.split(':').slice(1).join(':') ? pandora.user.ui._list.split(':').slice(1).join(':')
: pandora.getAllItemsTitle('items') : pandora.getAllItemsTitle('items')
); );
parts.push(Ox._(Ox.toTitleCase(pandora.user.ui.listView) + ' View')); parts.push(Ox._(Ox.toTitleCase(pandora.user.ui.listView) + ' View'));
@ -943,17 +943,15 @@ pandora.getClipVideos = function(clip, resolution) {
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( if (pandora.user.ui.edit) {
pandora.user.ui.edit parts.push(pandora.user.ui.edit.split(':').slice(1).join(':'));
? Ox._('Edit{noun}', {noun: ''}) + ' ' + pandora.user.ui.edit.split(':').slice(1).join(':') }
: Ox._('Edits') parts.push(Ox._('Edits'));
);
} else if (pandora.user.ui.section == 'texts') { } else if (pandora.user.ui.section == 'texts') {
parts.push( if (pandora.user.ui.text) {
pandora.user.ui.text parts.push(pandora.user.ui.text.split(':').slice(1).join(':'));
? Ox._('Text') + ' ' + pandora.user.ui.text.split(':').slice(1).join(':') }
: Ox._('Texts') parts.push(Ox._('Texts'));
);
} }
parts.push(pandora.site.site.name); parts.push(pandora.site.site.name);
return parts.join(' '); return parts.join(' ');