]> git.openstreetmap.org Git - rails.git/commitdiff
Fixed export filter
authorAaron Lidman <aaronlidman@gmail.com>
Tue, 19 Nov 2013 02:44:48 +0000 (18:44 -0800)
committerAaron Lidman <aaronlidman@gmail.com>
Tue, 19 Nov 2013 02:45:06 +0000 (18:45 -0800)
app/assets/javascripts/index/export.js

index 3d1dd3ce32aa2421f74c4611d6fa60847c2efe71..053f5169fa9832e622695042b88d18357b204169 100644 (file)
@@ -14,11 +14,9 @@ OSM.Export = function(map) {
 
   function boundsChanged() {
     var bounds = getBounds();
 
   function boundsChanged() {
     var bounds = getBounds();
-
     map.fitBounds(bounds);
     locationFilter.setBounds(bounds);
     map.fitBounds(bounds);
     locationFilter.setBounds(bounds);
-
-    enableFilter();
+    locationFilter.enable();
     validateControls();
   }
 
     validateControls();
   }
 
@@ -29,6 +27,7 @@ OSM.Export = function(map) {
 
     locationFilter.setBounds(map.getBounds().pad(-0.2));
     locationFilter.enable();
 
     locationFilter.setBounds(map.getBounds().pad(-0.2));
     locationFilter.enable();
+    validateControls();
   }
 
   function update() {
   }
 
   function update() {