pass item data (not just title) to getDocumentTitle

This commit is contained in:
rolux 2013-08-03 17:17:20 +00:00
parent 8275fb69a1
commit caadee8ad9

View file

@ -29,7 +29,7 @@ pandora.ui.item = function() {
if (result.status.code == 200) {
// we want to cache the title in any way, so that after closing
// a dialog and getting to this item, the title is correct
var documentTitle = pandora.getDocumentTitle(Ox.decodeHTMLEntities(result.data.title));
var documentTitle = pandora.getDocumentTitle(result.data);
document.title = pandora.getPageTitle(document.location.pathname) || documentTitle;
}