X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6618cb9019687c8c2edf74698f84b385c0d9edd6..26855add3861ad496efdcae8598ffdf7d1116074:/app/assets/javascripts/index/browse.js?ds=inline diff --git a/app/assets/javascripts/index/browse.js b/app/assets/javascripts/index/browse.js index a9bdbf2b7..d8de69974 100644 --- a/app/assets/javascripts/index/browse.js +++ b/app/assets/javascripts/index/browse.js @@ -113,7 +113,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;