summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-11-07 16:43:19 +0000
committerBrice Maron <brice@bmaron.net>2012-11-07 23:51:00 +0000
commitfbc3123d8e599ee5ae4a574856d93e4603aba843 (patch)
tree85c470b36cb87d0673b86d454e29c11555d53942
parentc8f24fa3c963e074f72d293e86afc6939ca93a95 (diff)
downloadnextcloud-server-fbc3123d8e599ee5ae4a574856d93e4603aba843.tar.gz
nextcloud-server-fbc3123d8e599ee5ae4a574856d93e4603aba843.zip
Correct more data vs attr to fix #189
-rw-r--r--settings/js/users.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/js/users.js b/settings/js/users.js
index 1474ebcdd81..b730dd640ba 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -79,7 +79,7 @@ var UserList={
subadminSelect.data('subadmin', subadmin);
tr.find('td.subadmins').empty();
}
- var allGroups = String($('#content table').data('groups')).split(', ');
+ var allGroups = String($('#content table').attr('data-groups')).split(', ');
$.each(allGroups, function(i, group) {
groupsSelect.append($('<option value="'+group+'">'+group+'</option>'));
if (typeof subadminSelect !== 'undefined' && group != 'admin') {
@@ -148,7 +148,7 @@ var UserList={
applyMultiplySelect:function(element) {
var checked=[];
- var user=element.data('username');
+ var user=element.attr('data-username');
if($(element).attr('class') == 'groupsselect'){
if(element.data('userGroups')){
checked=String(element.data('userGroups')).split(', ');