]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/browse.js
Update to iD v1.3.2
[rails.git] / app / assets / javascripts / browse.js
index 11818a1712c513421221455c2c3f209c488b7c01..565af41afc9ff1723b45b8c3b9921b05e721be9e 100644 (file)
@@ -61,9 +61,10 @@ $(document).ready(function () {
       zoom: true,
       callback: function(extent) {
         $("#loading").hide();
-        $("#browse_map .secondary-actions").show();
 
-        if (extent) {
+        if (extent && extent.isValid()) {
+          $("#browse_map .secondary-actions").show();
+
           $("a.bbox[data-editor=remote]").click(function () {
             return remoteEditHandler(extent);
           });
@@ -76,8 +77,6 @@ $(document).ready(function () {
           $("#object_edit").show();
 
           updatelinks(map.getCenter(), 16, null, extent, object);
-        } else {
-          $("#small_map").hide();
         }
       }
     });