X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5508a3857f658e579167f6e1418cb679f0ea83db..db675e706ad711014995e18d159c6deb0cc7fb44:/app/assets/javascripts/index/browse.js?ds=sidebyside diff --git a/app/assets/javascripts/index/browse.js b/app/assets/javascripts/index/browse.js index 49090f69c..f00d3999f 100644 --- a/app/assets/javascripts/index/browse.js +++ b/app/assets/javascripts/index/browse.js @@ -57,11 +57,8 @@ function initializeBrowse(map) { locationFilter.on("change", getData); - $("#sidebar_title").html(I18n.t('browse.start_rjs.data_frame_title')); $("#sidebar_content").html(sidebarHtml); - openSidebar(); - if (browseObjectList) loadObjectList(); map.on("moveend", updateData); @@ -107,7 +104,9 @@ function initializeBrowse(map) { getData(); } - function toggleAreas() { + function toggleAreas(e) { + e.preventDefault(); + if (areasHidden) { $("#browse_hide_areas_box").html(I18n.t('browse.start_rjs.hide_areas')); areasHidden = false;