diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-06-17 22:37:10 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-06-17 22:37:10 +0200 |
commit | 3b0b1a7ceb34596fb0f0ea89786b425b49fcd2f8 (patch) | |
tree | ca047df78f7a4264f3468f68aff5711a99e3dc7e /core/js | |
parent | 9e48f7f3ba85d1ad57ee4ab4946af51338f004f8 (diff) | |
parent | e8507372e3ac3a0f3bd494633d646952c8f3bf8c (diff) | |
download | nextcloud-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.js | 2 |
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') || |