correct formatting of rating and votes

This commit is contained in:
rolux 2011-11-12 11:50:17 +00:00
parent 77ba1ca955
commit 3b401b7166
2 changed files with 2 additions and 2 deletions

View file

@ -275,7 +275,7 @@
"title": "Rating",
"type": "float",
"columnWidth": 60,
"format": {"type": "unit", "args": ["%", 2]}
"format": {"type": "unit", "args": ["%", 0]}
},
{
"id": "votes",

View file

@ -379,7 +379,7 @@ pandora.ui.infoView = function(data) {
html = [];
['rating', 'votes'].forEach(function(key) {
data[key] && html.push(
formatKey(key) + Ox.formatNumber(data[key])
formatKey(key) + Ox.formatNumber(data[key], key == 'rating' ? 0 : 2)
);
});
$div.html(html.join('; '));