Skip to content

Commit

Permalink
Merge pull request #356 from Particular/hide_mobile_navigation
Browse files Browse the repository at this point in the history
Hiding mobile navigation when the link is clicked
  • Loading branch information
WilliamBZA committed May 31, 2016
2 parents 9cc9fcd + c67f6c4 commit 9b2159b
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 9b2159b

Please sign in to comment.