aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-01-03 05:13:56 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-01-03 05:13:56 +0100
commit023e7c5594cafc33a2e96b1ec4872d51346203e0 (patch)
tree7a05205c73bfc994231b07be6bedfebf167738cf
parent99175c32e5305538e3ded6e80fbaa77cd8f7ebfb (diff)
downloadnextcloud-server-023e7c5594cafc33a2e96b1ec4872d51346203e0.tar.gz
nextcloud-server-023e7c5594cafc33a2e96b1ec4872d51346203e0.zip
Fix popover menu not closing in user settings
A popover menu is displayed when its element has the "open" CSS class. That class is added when clicking on the menu toggle, but it was removed only when clicking again on the toggle, so the popover menu in user settings could be closed only by clicking again on the menu toggle. Now the "open" CSS class is removed too when clicking on the body, either directly or through event propagation. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-rw-r--r--settings/js/users/users.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index af41790a7c4..7b98af985ac 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -972,6 +972,7 @@ $(document).ready(function () {
$(document.body).click(function () {
$('#userlist tr.active').removeClass('active');
+ $('#userlist .popovermenu.open').removeClass('open');
});
$userListBody.on('click', '.action-togglestate', function (event) {