aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-06-17 22:37:10 +0200
committerLukas Reschke <lukas@owncloud.com>2015-06-17 22:37:10 +0200
commit3b0b1a7ceb34596fb0f0ea89786b425b49fcd2f8 (patch)
treeca047df78f7a4264f3468f68aff5711a99e3dc7e /core/js
parent9e48f7f3ba85d1ad57ee4ab4946af51338f004f8 (diff)
parente8507372e3ac3a0f3bd494633d646952c8f3bf8c (diff)
downloadnextcloud-server-3b0b1a7ceb34596fb0f0ea89786b425b49fcd2f8.tar.gz
nextcloud-server-3b0b1a7ceb34596fb0f0ea89786b425b49fcd2f8.zip
Merge pull request #16973 from owncloud/button-close-sidebar
Let buttons hide the sidebar
Diffstat (limited to 'core/js')
-rw-r--r--core/js/js.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 7604dc2a5b7..e0adc3591ac 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') ||