X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ce85092f57e985925876dea7a455ef5e897b8127..1997f1f662dddc8fcc9997ef301dacd9f73e075b:/app/views/site/index.html.erb diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index 150bdce4d..0602b6f11 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -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(); } }