When displaying recon scores, don't round to integers; keep 3 decimal digits.
git-svn-id: http://google-refine.googlecode.com/svn/trunk@565 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
890cbffb67
commit
66b324f9cc
@ -98,7 +98,13 @@ DataTableCellUI.prototype._render = function() {
|
||||
.text(candidate.name)
|
||||
.appendTo(li);
|
||||
|
||||
$('<span></span>').addClass("data-table-recon-score").text("(" + Math.round(candidate.score) + ")").appendTo(li);
|
||||
var score;
|
||||
if (candidate.score < 1) {
|
||||
score = Math.round(candidate.score * 1000) / 1000;
|
||||
} else {
|
||||
score = Math.round(candidate.score)
|
||||
}
|
||||
$('<span></span>').addClass("data-table-recon-score").text("(" + score + ")").appendTo(li);
|
||||
};
|
||||
|
||||
for (var i = 0; i < candidates.length; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user