Skip to content

Commit

Permalink
Hiding mobile navigation when the link is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
WojcikMike committed May 31, 2016
1 parent 9cc9fcd commit c67f6c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ServicePulse.Host/app/js/app.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
return active;
};

$($window.document).on('click', function (e) {
if ($('.navbar-collapse.in').is(':visible')) {
$('.navbar-collapse.in').collapse('hide');
}
});

$scope.$on("$routeChangeError", function(event, current, previous, rejection) {
toastService.showError("Route change error");
Expand Down

0 comments on commit c67f6c4

Please sign in to comment.