summaryrefslogtreecommitdiffstats
path: root/settings/js/users/users.js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js/users/users.js')
-rw-r--r--settings/js/users/users.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index 3b25bcd5b5f..6f29d6fe25b 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -8,13 +8,13 @@
var $userList;
var $userListBody;
-var filter;
var UserList = {
availableGroups: [],
offset: 0,
usersToLoad: 10, //So many users will be loaded when user scrolls down
currentGid: '',
+ filter: '',
/**
* Initializes the user list
@@ -229,7 +229,7 @@ var UserList = {
return aa.length - bb.length;
},
preSortSearchString: function(a, b) {
- var pattern = filter.getPattern();
+ var pattern = this.filter;
if(typeof pattern === 'undefined') {
return undefined;
}
@@ -398,7 +398,7 @@ var UserList = {
gid = '';
}
UserList.currentGid = gid;
- var pattern = filter.getPattern();
+ var pattern = this.filter;
$.get(
OC.generateUrl('/settings/users/users'),
{ offset: UserList.offset, limit: limit, gid: gid, pattern: pattern },
@@ -612,7 +612,7 @@ $(document).ready(function () {
UserList.initDeleteHandling();
// Implements User Search
- filter = new UserManagementFilter($('#usersearchform input'), UserList, GroupList);
+ OCA.Search.users= new UserManagementFilter(UserList, GroupList);
UserList.doSort();
UserList.availableGroups = $userList.data('groups');