use placeholder
This commit is contained in:
parent
68cc64728b
commit
5fcb69331c
1 changed files with 6 additions and 4 deletions
|
@ -584,9 +584,7 @@ pandora.ui.infoView = function(data) {
|
|||
|
||||
function formatValue(key, value) {
|
||||
var ret;
|
||||
if (key == 'originalTitle') {
|
||||
ret = value || data.title;
|
||||
} else if (key == 'year') {
|
||||
if (key == 'year') {
|
||||
ret = formatLink(value, 'year');
|
||||
} else if (['releasedate', 'dateofcensorcertificate'].indexOf(key) > -1) {
|
||||
ret = value ? Ox.formatDate(value,
|
||||
|
@ -795,7 +793,11 @@ pandora.ui.infoView = function(data) {
|
|||
format: function(value) {
|
||||
return formatValue(key, value);
|
||||
},
|
||||
placeholder: formatLight(Ox._('unknown')),
|
||||
placeholder: formatLight(
|
||||
key == 'originalTitle'
|
||||
? data.title
|
||||
: Ox._('unknown')
|
||||
),
|
||||
tooltip: canEdit ? pandora.getEditTooltip() : '',
|
||||
value: getValue(key, data[key])
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue