Permalink
Browse files

Server will format distance for front page geolocation distance

  • Loading branch information...
1 parent f6c0c54 commit ae0f07f0462dfa6260bdf86e4673f7210675e365 @autarch autarch committed Oct 14, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 share/js-source/VegGuide/FrontPageGeolocation.js
@@ -51,11 +51,10 @@ VegGuide.FrontPageGeolocation._updateNearbyList = function (res) {
var list = "<ul>";
for ( var i = 0; i < response.entries.length; i++ ) {
- var distance10 = parseFloat( response.entries[i].distance, 10 ) * 10;
list = list + '<li><a href="'
+ response.entries[i].uri
+ '">' + response.entries[i].name
- + " - " + ( Math.round(distance10) / 10 )
+ + " - " + response.entries[i].distance
+ "</a></li>";
}

0 comments on commit ae0f07f

Please sign in to comment.