Merge pull request #16973 from owncloud/button-close-sidebar
Let buttons hide the sidebar
This commit is contained in:
commit
3b0b1a7ceb
|
@ -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') ||
|
||||
|
|
Loading…
Reference in New Issue