diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-04-01 22:44:08 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-06-02 12:53:55 +0200 |
commit | 19fd7cd9c7206cea7c0eba21ed2b5d34ce652429 (patch) | |
tree | 44c7e6accc24a211b8dc95a0cc6a262154295413 /settings/js/users | |
parent | 5f57d72b93afe221139f6d0a2be033aea926b313 (diff) | |
download | nextcloud-server-19fd7cd9c7206cea7c0eba21ed2b5d34ce652429.tar.gz nextcloud-server-19fd7cd9c7206cea7c0eba21ed2b5d34ce652429.zip |
When emptying a list, a hidden entry remains. If the user uid is the same as of a user being to be loaded, it will not be appended but removed. Thus, add a random user name to avoid such happenings.
Diffstat (limited to 'settings/js/users')
-rw-r--r-- | settings/js/users/users.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js index 63153f67f50..f5c3b1decc5 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -167,7 +167,11 @@ var UserList = { empty: function() { //one row needs to be kept, because it is cloned to add new rows $('tbody tr:not(:first)').remove(); - $('tbody tr').first().hide(); + tr = $('tbody tr').first(); + tr.hide(); + //on an update a user may be missing when the username matches with that + //of the hidden row. So change this to a random string. + tr.attr('data-uid', Math.random().toString(36).substring(2)); UserList.isEmpty = true; UserList.offset = 0; }, |