X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6618cb9019687c8c2edf74698f84b385c0d9edd6..2b42fd102a55f7af41b8e19dfcb7271abb72ed1d:/app/assets/javascripts/index/browse.js diff --git a/app/assets/javascripts/index/browse.js b/app/assets/javascripts/index/browse.js index a9bdbf2b7..f52c58019 100644 --- a/app/assets/javascripts/index/browse.js +++ b/app/assets/javascripts/index/browse.js @@ -63,11 +63,8 @@ function initializeBrowse(map, params) { 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); @@ -113,7 +110,9 @@ function initializeBrowse(map, params) { getData(); } - function toggleAreas() { + function toggleAreas(e) { + e.preventDefault(); + if (areasHidden) { $("#browse_hide_areas_box").html(I18n.t('browse.start_rjs.hide_areas')); areasHidden = false;