From d006f6195e879622ba1abd8acddd18baf6ed3a47 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 2 Mar 2013 13:54:35 +0000 Subject: [PATCH] fix text title --- static/js/pandora/utils.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index 3972918b2..867a18692 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -582,12 +582,16 @@ pandora.getClipsQuery = function() { itemTitles[pandora.user.ui.item] = itemTitle } var parts = [pandora.site.site.name]; - if (!pandora.user.ui.item) { - pandora.user.ui._list && parts.push('List ' + pandora.user.ui._list); - parts.push(Ox.toTitleCase(pandora.user.ui.listView) + ' View'); - } else { - parts.push(itemTitles[pandora.user.ui.item] || pandora.user.ui.item); - parts.push(Ox.toTitleCase(pandora.user.ui.itemView) + ' View'); + if (pandora.user.ui.section == 'items') { + if (!pandora.user.ui.item) { + pandora.user.ui._list && parts.push('List ' + pandora.user.ui._list); + parts.push(Ox.toTitleCase(pandora.user.ui.listView) + ' View'); + } else { + parts.push(itemTitles[pandora.user.ui.item] || pandora.user.ui.item); + parts.push(Ox.toTitleCase(pandora.user.ui.itemView) + ' View'); + } + } else if (pandora.user.ui.section == 'texts') { + parts.push(pandora.user.ui.text ? pandora.user.ui.text : 'Texts'); } return parts.join(' - '); };