diff options
-rw-r--r-- | settings/js/users.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index bf0bd108640..6026b22d1aa 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -88,8 +88,10 @@ UserList={ }); tr.find('td.groups').append(groupsSelect); UserList.applyMultiplySelect(groupsSelect); - tr.find('td.subadmins').append(subadminSelect); - UserList.applyMultiplySelect(subadminSelect); + if (tr.find('td.subadmins').length > 0) { + tr.find('td.subadmins').append(subadminSelect); + UserList.applyMultiplySelect(subadminSelect); + } if (tr.find('td.remove img').length == 0 && OC.currentUser != username) { tr.find('td.remove').append($('<img alt="Delete" title="'+t('settings','Delete')+'" class="svg action" src="'+OC.imagePath('core','actions/delete')+'"/>')); } else if (OC.currentUser == username) { |