$.unique works only for DOM elements

remotes/origin/fix-10825
Arthur Schiwon 11 years ago
parent 038ba1d05d
commit 1d39282360
  1. 4
      settings/js/users/users.js

@ -654,9 +654,11 @@ $(document).ready(function () {
} else {
if (result.data.groups) {
var addedGroups = result.data.groups;
UserList.availableGroups = $.unique($.merge(UserList.availableGroups, addedGroups));
for (var i in result.data.groups) {
var gid = result.data.groups[i];
if(UserList.availableGroups.indexOf(gid) === -1) {
UserList.availableGroups.push(gid);
}
$li = GroupList.getGroupLI(gid);
userCount = GroupList.getUserCount($li);
GroupList.setUserCount($li, userCount + 1);

Loading…
Cancel
Save