embed document, fixes #2960

This commit is contained in:
j 2018-03-05 16:55:03 +05:30
commit 1905f6843b
3 changed files with 17 additions and 3 deletions

View file

@ -40,7 +40,7 @@ pandora.ui.document = function() {
item = result.data;
var documentTitle = pandora.getWindowTitle(item);
document.title = pandora.getPageTitle(document.location.pathname) || documentTitle;
pandora.$ui.itemTitle
pandora.$ui.itemTitle && pandora.$ui.itemTitle
.options({title: '<b>' + (pandora.getDocumentTitle(item)) + '</b>'})
.show();