Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Server will format distance for front page geolocation distance
  • Loading branch information
autarch committed Oct 14, 2012
1 parent f6c0c54 commit ae0f07f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions share/js-source/VegGuide/FrontPageGeolocation.js
Expand Up @@ -51,11 +51,10 @@ VegGuide.FrontPageGeolocation._updateNearbyList = function (res) {
var list = "<ul>"; var list = "<ul>";


for ( var i = 0; i < response.entries.length; i++ ) { for ( var i = 0; i < response.entries.length; i++ ) {
var distance10 = parseFloat( response.entries[i].distance, 10 ) * 10;
list = list + '<li><a href="' list = list + '<li><a href="'
+ response.entries[i].uri + response.entries[i].uri
+ '">' + response.entries[i].name + '">' + response.entries[i].name
+ " - " + ( Math.round(distance10) / 10 ) + " - " + response.entries[i].distance
+ "</a></li>"; + "</a></li>";
} }


Expand Down

0 comments on commit ae0f07f

Please sign in to comment.