(3 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
}); | }); | ||
$('#sidebarCollapse').click(function() { | $('#sidebarCollapse').click(function() { | ||
+ | $('#sidebar').trigger('offcanvas.toggle'); | ||
+ | }); | ||
+ | $('#mw-content-text div').click(function() { | ||
$('#sidebar').trigger('offcanvas.toggle'); | $('#sidebar').trigger('offcanvas.toggle'); | ||
}); | }); | ||
$(window).on('swiperight', function(){ | $(window).on('swiperight', function(){ | ||
− | $('#sidebar').trigger('offcanvas. | + | $('#sidebar').trigger('offcanvas.toggle'); |
}); | }); | ||
$(window).on('swipeleft', function(){ | $(window).on('swipeleft', function(){ | ||
− | $('#sidebar').trigger('offcanvas. | + | $('#sidebar').trigger('offcanvas.toggle'); |
+ | }); | ||
+ | |||
+ | |||
+ | $('#sidenav').find('> li').click(function() { | ||
+ | $(this).find('> ul').trigger('collapse.toggle'); | ||
}); | }); | ||
}); | }); |
Latest revision as of 17:09, 1 November 2017