From e8507372e3ac3a0f3bd494633d646952c8f3bf8c Mon Sep 17 00:00:00 2001 From: Hendrik Leppelsack Date: Tue, 16 Jun 2015 19:41:20 +0200 Subject: [PATCH] let buttons hide the sidebar --- core/js/js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/js/js.js b/core/js/js.js index 7604dc2a5b..e0adc3591a 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') ||