]> source.dussan.org Git - nextcloud-server.git/commitdiff
Revert "fix group and subadmin managing for 'ajax-loaded' users"
authorGeorg Ehrke <dev@georgswebsite.de>
Thu, 29 Nov 2012 12:37:37 +0000 (13:37 +0100)
committerGeorg Ehrke <dev@georgswebsite.de>
Thu, 29 Nov 2012 12:37:37 +0000 (13:37 +0100)
This reverts commit a5774229a13ef307dabe3142d1a85f12bf41b391.

settings/js/users.js

index a278b41721948f21869e336d4db45d195253c4d8..517984f92475b88e2a50932086dccc75d2c9f01d 100644 (file)
@@ -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(', ');