Navbar autocollapse on mobile (#723)

* Implements navbar auto-collapse feature

* Fixed formatting
This commit is contained in:
NielDB 2019-01-15 22:35:11 +01:00 committed by Samuel Shifterovich
parent 20de8924c2
commit bef616e51a

View File

@ -173,9 +173,15 @@
<script src="assets/js/bootstrap.min.js?v=4"></script>
<script src="assets/js/sortable.min.js?v=4"></script>
<script>
$(function() {
$("[data-toggle='tooltip']").tooltip();
});
$(function () {
$("[data-toggle='tooltip']").tooltip();
});
$('.navbar a').not(".dropdown-toggle").click(function (e) {
if ($(".navbar-toggler").is(":visible")) {
$('.navbar-collapse').collapse('toggle');
}
});
</script>
<!--