(One intermediate revision by the same user not shown) | |||
Line 23: | Line 23: | ||
$(window).on('swipeleft', function(){ | $(window).on('swipeleft', function(){ | ||
$('#sidebar').trigger('offcanvas.toggle'); | $('#sidebar').trigger('offcanvas.toggle'); | ||
+ | }); | ||
+ | |||
+ | |||
+ | $('#sidenav').find('> li').click(function() { | ||
+ | $(this).find('> ul').trigger('collapse.toggle'); | ||
}); | }); | ||
}); | }); |
Latest revision as of 17:09, 1 November 2017