diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-10 10:28:23 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-11-10 10:28:23 +0100 |
commit | 267d30d4f612c20e4e48224c8ff5295b0f48b3f1 (patch) | |
tree | b1103253e5165be5261290e542347b06aa14af35 /settings/js | |
parent | 960c8cb5bce4449834cf6373601e7555743cb89f (diff) | |
download | nextcloud-server-267d30d4f612c20e4e48224c8ff5295b0f48b3f1.tar.gz nextcloud-server-267d30d4f612c20e4e48224c8ff5295b0f48b3f1.zip |
Fix #18072
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/users/users.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js index bc8a6a9273e..8ce9cb6ac7c 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -315,11 +315,7 @@ var UserList = { var gid = groups[i]; var $li = GroupList.getGroupLI(gid); var userCount = GroupList.getUserCount($li); - if(userCount === 1) { - GroupList.setUserCount($li, ''); - } else { - GroupList.setUserCount($li, userCount - 1); - } + GroupList.setUserCount($li, userCount - 1); } GroupList.decEveryoneCount(); UserList.hide(uid); @@ -334,11 +330,7 @@ var UserList = { var gid = groups[i]; var $li = GroupList.getGroupLI(gid); var userCount = GroupList.getUserCount($li); - if(userCount === 1) { - GroupList.setUserCount($li, ''); - } else { - GroupList.setUserCount($li, userCount + 1); - } + GroupList.setUserCount($li, userCount + 1); } GroupList.incEveryoneCount(); UserList.getRow(uid).show(); |