Skip to content

Commit

Permalink
Collapse navbar on button events
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcbride committed Oct 21, 2014
1 parent f47e027 commit 5f61b70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/js/app.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
var map, featureList, boroughSearch = [], theaterSearch = [], museumSearch = [];

$(document).on("click", ".feature-row", function(e) {
sidebarClick(parseInt($(this).attr('id')));
sidebarClick(parseInt($(this).attr("id")));
});

$("#about-btn").click(function() {
$("#aboutModal").modal("show");
$(".navbar-collapse.in").collapse("hide");
return false;
});

$("#full-extent-btn").click(function() {
map.fitBounds(boroughs.getBounds());
$(".navbar-collapse.in").collapse("hide");
return false;
});

$("#legend-btn").click(function() {
$("#legendModal").modal("show");
$(".navbar-collapse.in").collapse("hide");
return false;
});

$("#login-btn").click(function() {
$("#loginModal").modal("show");
$(".navbar-collapse.in").collapse("hide");
return false;
});

Expand Down

0 comments on commit 5f61b70

Please sign in to comment.