From 7838120a92165f4e5690c6644f2618c86775032b Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 2 Feb 2014 18:39:01 +0000 Subject: [PATCH] =?UTF-8?q?fix=20#2118=20(document.title:=20'=E2=80=93=20s?= =?UTF-8?q?itename'=20should=20come=20last)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/utils.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/static/js/utils.js b/static/js/utils.js index 23ee7a5c..27b3a234 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -924,7 +924,7 @@ pandora.getClipVideos = function(clip, resolution) { (function() { var itemTitles = {}; pandora.getDocumentTitle = function(itemData) { - var parts = [pandora.site.site.name]; + var parts = []; if (itemData) { itemTitles[pandora.user.ui.item] = Ox.decodeHTMLEntities(pandora.getItemTitle(itemData)); } @@ -941,12 +941,12 @@ pandora.getClipVideos = function(clip, resolution) { } else if (pandora.user.ui.section == 'texts') { parts.push(pandora.user.ui.text ? Ox._('Text') + ' ' + pandora.user.ui.text : Ox._('Texts')); } + parts.push(pandora.site.site.name); return parts.join(' – '); }; }()); pandora.getDownloadLink = function(item, rightslevel) { - console.log('pandora.getDownloadLink', item, rightslevel); var torrent = pandora.site.video.torrent; if (arguments.length == 2 && torrent && pandora.site.capabilities.canSeeItem.guest < rightslevel) { @@ -1367,8 +1367,7 @@ pandora.getPageTitle = function(stateOrURL) { Ox.isObject(stateOrURL) ? stateOrURL.page : stateOrURL.slice(1) ); return page - ? pandora.site.site.name - + (page.title ? ' – ' + page.title : '') + ? (page.title ? page.title + ' – ' : '') + pandora.site.site.name : null; };