Need to preventDefault on href='#' links

Fixes https://trac.openstreetmap.org/ticket/4947
This commit is contained in:
John Firebaugh 2013-08-15 09:21:12 -07:00 committed by Tom Hughes
parent 70190cf363
commit c919340c11

View file

@ -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;