Skip to content

Commit

Permalink
Need to preventDefault on href='#' links
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh authored and tomhughes committed Aug 15, 2013
1 parent 70190cf commit c919340
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/assets/javascripts/index/browse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c919340

Please sign in to comment.