Fix deletion feedback

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2017-10-19 11:41:53 +02:00
parent f3d9961150
commit 2e38d0173d
No known key found for this signature in database
GPG Key ID: FB5ACEED51955BF8
2 changed files with 2 additions and 2 deletions

View File

@ -297,7 +297,7 @@ GroupList = {
}
// Call function for handling delete/undo
GroupDeleteHandler.mark(GroupList.getElementGID(this));
GroupDeleteHandler.mark(GroupList.getElementGID($(this).parent()));
};
$userGroupList.on('click', '.delete', deleteAction);

View File

@ -56,12 +56,12 @@
</a>
<div class="app-navigation-entry-utils">
<ul>
<li class="app-navigation-entry-utils-counter"><?php if($group['usercount'] > 0) { p($group['usercount']); } ?></li>
<?php if($_['isAdmin']): ?>
<li class="app-navigation-entry-utils-menu-button delete">
<button class="icon-delete"></button>
</li>
<?php endif; ?>
<li class="app-navigation-entry-utils-counter"><?php if($group['usercount'] > 0) { p($group['usercount']); } ?></li>
</ul>
</div>
</li>