summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorDeLtAfOx <edo@ravers.it>2014-07-15 07:52:04 +0200
committerDeLtAfOx <edo@ravers.it>2014-07-15 07:52:04 +0200
commit26d9993b3ed3e0cfb56c84478e8b4c3f5be459fb (patch)
tree61a5ebbc60ac62682fc0f0b124d819480abcf7e8 /settings/js
parent592dad0a719f685e2c0e40a5ab31809bce872cbd (diff)
downloadnextcloud-server-26d9993b3ed3e0cfb56c84478e8b4c3f5be459fb.tar.gz
nextcloud-server-26d9993b3ed3e0cfb56c84478e8b4c3f5be459fb.zip
Userlist: async load doesnt fill checked group/subadmin array
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/users/users.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index 7d567e225d9..7cc9a6ad030 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -365,7 +365,12 @@ var UserList = {
var user = UserList.getUID($element);
if ($element.data('user-groups')) {
- checked = $element.data('user-groups');
+ if (typeof $element.data('user-groups') == 'string') {
+ checked = $element.data('user-groups').split(", ");
+ }
+ else {
+ checked = $element.data('user-groups');
+ }
}
var checkHandler = null;
if(user) { // Only if in a user row, and not the #newusergroups select
@@ -445,7 +450,12 @@ var UserList = {
var user = UserList.getUID($element);
if ($element.data('subadmin')) {
- checked = $element.data('subadmin');
+ if (typeof $element.data('subadmin') == 'string') {
+ checked = $element.data('subadmin').split(", ");
+ }
+ else {
+ checked = $element.data('subadmin');
+ }
}
var checkHandler = function (group) {
if (group === 'admin') {