pass item data (not just title) to getDocumentTitle
This commit is contained in:
parent
8275fb69a1
commit
caadee8ad9
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ pandora.ui.item = function() {
|
||||||
if (result.status.code == 200) {
|
if (result.status.code == 200) {
|
||||||
// we want to cache the title in any way, so that after closing
|
// we want to cache the title in any way, so that after closing
|
||||||
// a dialog and getting to this item, the title is correct
|
// 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;
|
document.title = pandora.getPageTitle(document.location.pathname) || documentTitle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue