diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-11-29 13:37:37 +0100 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-11-29 13:37:37 +0100 |
commit | 1d1ab2a9119361d1566f521b91b519f8bd2ba823 (patch) | |
tree | 9ba2dee7feb42e5c585c240bf2ecd6febd0e22b3 /settings | |
parent | 4c83a4c918f94413bd1a1dcbc64305e3fd25e291 (diff) | |
download | nextcloud-server-1d1ab2a9119361d1566f521b91b519f8bd2ba823.tar.gz nextcloud-server-1d1ab2a9119361d1566f521b91b519f8bd2ba823.zip |
Revert "fix group and subadmin managing for 'ajax-loaded' users"
This reverts commit a5774229a13ef307dabe3142d1a85f12bf41b391.
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/users.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index a278b417219..517984f9247 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -71,10 +71,15 @@ 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" data-username="' + username + '" data-user-groups="' + groups + '" title="Groups">'); + var groupsSelect = $('<select multiple="multiple" class="groupsselect" data-placehoder="Groups" title="Groups">'); + groupsSelect.data('username', username); + groupsSelect.data('userGroups', groups); tr.find('td.groups').empty(); if (tr.find('td.subadmins').length > 0) { - 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') + '">'); + 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); tr.find('td.subadmins').empty(); } var allGroups = String($('#content table').attr('data-groups')).split(', '); |