summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-08-25 14:35:24 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-08-25 14:35:24 +0200
commit80374c7cb2f3c98e350c95f92a9785aacef5d2c4 (patch)
treebd3cc8d91d21caec793b6b9ac306340ed1ce8278 /settings/js
parent4f5eff2b6fd60f603a8704cb950acff67c5cc9f3 (diff)
downloadnextcloud-server-80374c7cb2f3c98e350c95f92a9785aacef5d2c4.tar.gz
nextcloud-server-80374c7cb2f3c98e350c95f92a9785aacef5d2c4.zip
fix UI bug with subadmins
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/users.js6
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) {