Permalink
Browse files

Merge branch 'master' of git@github.com:igorsobreira/wifimap

  • Loading branch information...
2 parents 71c43e2 + 481f5ff commit 36b4515f48b9d439c48d61e8a7773726438f1622 @ricobl ricobl committed Aug 15, 2010
Showing with 3 additions and 7 deletions.
  1. +3 −3 wifimap/media/js/spots.js
  2. +0 −4 wifimap/templates/index.html
@@ -43,9 +43,7 @@ var SpotManager = {
url: '/spots/search/',
method: 'GET',
dataType: 'json',
- success: function(data){
- $('#content').html(data.template);
-
+ success: function(data){
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(){
var initialLocation = new google.maps.LatLng(position.coords.latitude,position.coords.longitude);
@@ -57,6 +55,8 @@ var SpotManager = {
Map.map.setCenter(new google.maps.LatLng(data.center_point[1][0], data.center_point[1][1]));
}
+ self.getAccessPointsListByBounds();
+
self.addSpotsToMap(data.points);
}
});
@@ -16,10 +16,6 @@
<h2>Find WiFi Access Points around the world!</h2>
<form method="get" action="{% url spots_search %}" id="search-form">
<span>
- <input type="hidden" name="north" />
- <input type="hidden" name="south" />
- <input type="hidden" name="east" />
- <input type="hidden" name="west" />
<input type="text" name="place" />
<button id="search-button">search</button>
</span>

0 comments on commit 36b4515

Please sign in to comment.