This commit is contained in:
Sanj 2011-09-01 04:00:03 +05:30
parent 1072eb00fd
commit 03146ae756

View File

@ -13,7 +13,7 @@ function getRow(d) {
var $tr = $('<tr />'); var $tr = $('<tr />');
var $one = $('<td />').appendTo($tr); var $one = $('<td />').appendTo($tr);
var $a = $('<a />').attr("href", "/admin/places/feature/" + d.id).text(d.preferred_name).appendTo($one); var $a = $('<a />').attr("href", "/admin/places/feature/" + d.id).text(d.preferred_name).appendTo($one);
var similarity = Math.round(parseFloat(d.similarity) * 100); var similarity = Math.round(parseFloat(d.similarity) * 1000) / 10;
var distance = Math.round(parseFloat(d.distance)); var distance = Math.round(parseFloat(d.distance));
$('<td />').text(d.feature_type).appendTo($tr); $('<td />').text(d.feature_type).appendTo($tr);
$('<td />').text(similarity).appendTo($tr); $('<td />').text(similarity).appendTo($tr);