diff --git a/core/js/js.js b/core/js/js.js index 7604dc2a5b7e300746299a9bd5046818259a8de0..e0adc3591ac1f72e5a828404d4bd60f4900e770f 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1231,7 +1231,7 @@ function initCore() { }); // close sidebar when switching navigation entry var $appNavigation = $('#app-navigation'); - $appNavigation.delegate('a', 'click', function(event) { + $appNavigation.delegate('a, :button', 'click', function(event) { var $target = $(event.target); // don't hide navigation when changing settings or adding things if($target.is('.app-navigation-noclose') ||