use same code path for document.title and item title in toolbar

This commit is contained in:
rolux 2013-08-03 17:38:33 +00:00
commit acd70661d9
2 changed files with 14 additions and 18 deletions

View file

@ -34,13 +34,7 @@ pandora.ui.item = function() {
}
pandora.$ui.itemTitle
.options({
title: '<b>' + result.data.title
+ (Ox.len(result.data.director)
? ' (' + result.data.director.join(', ') + ')'
: '')
+ (result.data.year ? ' ' + result.data.year : '') + '</b>'
})
.options({title: '<b>' + pandora.getItemTitle(result.data) + '</b>'})
.show();
// fixme: layers have value, subtitles has text?