forked from 0x2620/pandora
correct formatting of rating and votes
This commit is contained in:
parent
77ba1ca955
commit
3b401b7166
2 changed files with 2 additions and 2 deletions
|
@ -275,7 +275,7 @@
|
|||
"title": "Rating",
|
||||
"type": "float",
|
||||
"columnWidth": 60,
|
||||
"format": {"type": "unit", "args": ["%", 2]}
|
||||
"format": {"type": "unit", "args": ["%", 0]}
|
||||
},
|
||||
{
|
||||
"id": "votes",
|
||||
|
|
|
@ -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('; '));
|
||||
|
|
Loading…
Reference in a new issue