Skip to content
Browse files

Fixing bug with starting zoom when not showing the distance drop down…

… list
  • Loading branch information...
1 parent 54b4ab4 commit abd8ff4ee880f3e2078bfdc762d14903233792ea Mark Ransom committed Mar 1, 2012
View
4 store_locator/__init__.py
@@ -1,3 +1,3 @@
-VERSION = (1,4,0)
-__version__ = "1.4.0"
+VERSION = (1,5,0)
+__version__ = "1.5.0"
View
1 store_locator/models.py
@@ -85,6 +85,7 @@ def get_single_line_address(self):
('25', '25 Miles'),
('50', '50 Miles'),
('100', '100 Miles'),
+ ('500', '100 Miles'),
)
class StoreLocator(CMSPlugin):
View
3 store_locator/static/store_locator/js/store_locator_map.js
@@ -6,6 +6,7 @@ var zoom_list = {
"25" : 10,
"50" : 9,
"100" : 8,
+ "500" : 4,
}
var markers = new Array;
@@ -40,7 +41,7 @@ function location_search() {
var distance = $("#distance_field").val();
var new_zoom = zoom_list[distance];
if (new_zoom == undefined) {
- new_zoom = 10;
+ new_zoom = starting_zoom;
}
$.get(get_lat_long_url + "?q=" + search_value, function(data) {
var latitude = data.split(',')[2];

0 comments on commit abd8ff4

Please sign in to comment.
Something went wrong with that request. Please try again.