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:
David Huynh 2010-04-28 22:53:13 +00:00
parent 890cbffb67
commit 66b324f9cc

View File

@ -98,7 +98,13 @@ DataTableCellUI.prototype._render = function() {
.text(candidate.name) .text(candidate.name)
.appendTo(li); .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++) { for (var i = 0; i < candidates.length; i++) {