use itemKey title in padma info page

This commit is contained in:
j 2013-04-30 17:18:05 +00:00
parent e84b5c1ca3
commit 498213f222

View file

@ -578,6 +578,8 @@ pandora.ui.infoView = function(data) {
}
function formatKey(key, isStatistics) {
var item = Ox.getObjectById(pandora.site.itemKeys, key);
key = item ? item.title : key;
return isStatistics
? $('<div>').css({marginBottom: '4px', fontWeight: 'bold'})
.html(Ox.toTitleCase(key).replace(' Per ', ' per '))