diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-11-28 18:40:00 +0100 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-11-28 18:40:00 +0100 |
commit | a5774229a13ef307dabe3142d1a85f12bf41b391 (patch) | |
tree | e6dd5b505c26706e786804ea1beb334c38a05d9d /settings | |
parent | ab1370277036b337040ce180614f967295ad287a (diff) | |
download | nextcloud-server-a5774229a13ef307dabe3142d1a85f12bf41b391.tar.gz nextcloud-server-a5774229a13ef307dabe3142d1a85f12bf41b391.zip |
fix group and subadmin managing for 'ajax-loaded' users
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/users.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index af83e0321a5..7c022e52937 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -71,15 +71,10 @@ var UserList={ var tr = $('tbody tr').first().clone(); tr.attr('data-uid', username); tr.find('td.name').text(username); - var groupsSelect = $('<select multiple="multiple" class="groupsselect" data-placehoder="Groups" title="Groups">'); - groupsSelect.data('username', username); - groupsSelect.data('userGroups', groups); + var groupsSelect = $('<select multiple="multiple" class="groupsselect" data-placehoder="Groups" data-username="' + username + '" data-user-groups="' + groups + '" title="Groups">'); tr.find('td.groups').empty(); if (tr.find('td.subadmins').length > 0) { - var subadminSelect = $('<select multiple="multiple" class="subadminsselect" data-placehoder="subadmins" title="' + t('files', 'Group Admin') + '">'); - subadminSelect.data('username', username); - subadminSelect.data('userGroups', groups); - subadminSelect.data('subadmin', subadmin); + var subadminSelect = $('<select multiple="multiple" class="subadminsselect" data-placehoder="subadmins" data-username="' + username + '" data-user-groups="' + groups + '" data-subadmin="' + subadmin + '" title="' + t('files', 'Group Admin') + '">'); tr.find('td.subadmins').empty(); } var allGroups = String($('#content table').attr('data-groups')).split(', '); |