]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.html.erb
Don't close the sidebar when the visibility of the data layer changes
[rails.git] / app / views / site / index.html.erb
index 150bdce4d59804d9a699f754b316f1f36ffa8dd9..0602b6f11598b855b96955ae6055c6c12a6b49f2 100644 (file)
@@ -182,7 +182,7 @@ end
   function toggleData() {
     if (map.dataLayer.visibility) {
       <%= remote_function :url => { :controller => 'browse', :action => 'start' } %>
-    } else {
+    } else if (map.dataLayer.active) {
       closeSidebar();
     }
   }