diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-10-07 18:16:51 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-10-11 11:43:43 +0300 |
commit | 1bc2da1c6028d8efaf5bbdfd603a44f96da38bac (patch) | |
tree | 3f911e167d8fb96f682689b6f6a5d605386d9bc5 /settings | |
parent | d2c51750af5698557a06569bf1027afa89c703bf (diff) |
Improve user list rendering perf by not resorting after every add (#26282)
The call to UserList.add() was wrong and was passing "user.lastLogin"
as the sort argument which would cause the list to be resorted over and
over again for every added item after loading the next page of users.
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/users/users.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js index 55c0d84db8c..2b0847651ec 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -393,7 +393,7 @@ var UserList = { if(UserList.has(user.name)) { return true; } - var $tr = UserList.add(user, user.lastLogin, false, user.backend); + var $tr = UserList.add(user, false); trs.push($tr); loadedUsers++; }); |