Revert "fix group and subadmin managing for 'ajax-loaded' users"
This reverts commit a5774229a1
.
This commit is contained in:
parent
4c83a4c918
commit
1d1ab2a911
|
@ -71,10 +71,15 @@ var UserList={
|
||||||
var tr = $('tbody tr').first().clone();
|
var tr = $('tbody tr').first().clone();
|
||||||
tr.attr('data-uid', username);
|
tr.attr('data-uid', username);
|
||||||
tr.find('td.name').text(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();
|
tr.find('td.groups').empty();
|
||||||
if (tr.find('td.subadmins').length > 0) {
|
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();
|
tr.find('td.subadmins').empty();
|
||||||
}
|
}
|
||||||
var allGroups = String($('#content table').attr('data-groups')).split(', ');
|
var allGroups = String($('#content table').attr('data-groups')).split(', ');
|
||||||
|
|
Loading…
Reference in New Issue