diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-11-29 13:56:07 +0100 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-11-29 13:56:07 +0100 |
commit | e5af24d08489fa873380112f5ee081013aee58f3 (patch) | |
tree | 2f8827edfc21d2da6c03314e1c5c8c2e8d808407 /settings/js | |
parent | 1d1ab2a9119361d1566f521b91b519f8bd2ba823 (diff) | |
download | nextcloud-server-e5af24d08489fa873380112f5ee081013aee58f3.tar.gz nextcloud-server-e5af24d08489fa873380112f5ee081013aee58f3.zip |
use attr instead of data
Diffstat (limited to 'settings/js')
-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 517984f9247..f2ce69cf311 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" title="Groups"></select>').attr('data-username', username).attr('data-user-groups', 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" title="' + t('files', 'Group Admin') + '">').attr('data-username', username).attr('data-user-groups', groups).attr('data-subadmin', subadmin); tr.find('td.subadmins').empty(); } var allGroups = String($('#content table').attr('data-groups')).split(', '); |