do not remove empty group in gui by js

This commit is contained in:
michag86 2015-08-19 20:05:52 +02:00
parent 9ad4510f5b
commit 3a6d273265
1 changed files with 0 additions and 11 deletions

View File

@ -470,17 +470,6 @@ var UserList = {
UserList.availableGroups.push(groupName);
}
// in case this was the last user in that group the group has to be removed
var groupElement = GroupList.getGroupLI(groupName);
var userCount = GroupList.getUserCount(groupElement);
if (response.data.action === 'remove' && userCount === 1) {
_.without(UserList.availableGroups, groupName);
GroupList.remove(groupName);
$('.groupsselect option').filterAttr('value', groupName).remove();
$('.subadminsselect option').filterAttr('value', groupName).remove();
}
}
if (response.data.message) {
OC.Notification.show(response.data.message);