Merge pull request #8517 from nextcloud/stable13-8416
[stable13] Fix hiding and event propagation issues with the user management popover
This commit is contained in:
commit
a4fbe80f73
|
@ -940,7 +940,7 @@ $(document).ready(function () {
|
|||
UserList._triggerGroupEdit($td, isSubadminSelect);
|
||||
});
|
||||
|
||||
$userListBody.on('click', '.toggleUserActions', function (event) {
|
||||
$userListBody.on('click', '.toggleUserActions > .action', function (event) {
|
||||
event.stopPropagation();
|
||||
var $td = $(this).closest('td');
|
||||
var $tr = $($td).closest('tr');
|
||||
|
@ -963,9 +963,11 @@ $(document).ready(function () {
|
|||
$tr.addClass('active');
|
||||
});
|
||||
|
||||
$(document).on('mouseup', function () {
|
||||
$('#userlist tr.active').removeClass('active');
|
||||
$('#userlist .popovermenu.open').removeClass('open');
|
||||
$(document).on('mouseup', function (event) {
|
||||
if (!$(event.target).closest('.toggleUserActions').length) {
|
||||
$('#userlist tr.active').removeClass('active');
|
||||
$('#userlist .popovermenu.open').removeClass('open');
|
||||
}
|
||||
});
|
||||
|
||||
$userListBody.on('click', '.action-togglestate', function (event) {
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
<td class="userActions">
|
||||
<div class="toggleUserActions">
|
||||
<a class="action"><span class="icon-more"></span></a>
|
||||
<div class="popovermenu bubble menu">
|
||||
<div class="popovermenu">
|
||||
<ul class="userActionsMenu">
|
||||
<li>
|
||||
<a href="#" class="menuitem action-togglestate permanent" data-action="togglestate"></a>
|
||||
|
|
Loading…
Reference in New Issue