add itemTitleKeys to config and move getItemTitle to its own file, use everywhere title strings are used
This commit is contained in:
parent
a9091db9ef
commit
fb5a5c5cf7
16 changed files with 41 additions and 49 deletions
|
|
@ -105,7 +105,7 @@ pandora.ui.browser = function() {
|
|||
height: ratio <= 1 ? size : size / ratio,
|
||||
id: data.id,
|
||||
info: info,
|
||||
title: data.title + (data.director && data.director.length ? ' (' + data.director.join(', ') + ')' : ''),
|
||||
title: pandora.getItemTitle(data),
|
||||
url: url,
|
||||
width: ratio >= 1 ? size : size * ratio
|
||||
};
|
||||
|
|
@ -115,7 +115,7 @@ pandora.ui.browser = function() {
|
|||
query: pandora.user.ui.find
|
||||
}), callback);
|
||||
},
|
||||
keys: ['director', 'id', 'modified', 'posterRatio', 'title', 'year'],
|
||||
keys: ['id', 'modified', 'posterRatio'].concat(pandora.site.itemTitleKeys),
|
||||
max: 1,
|
||||
min: 1,
|
||||
orientation: 'horizontal',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue