mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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.
This commit is contained in:
parent
5f57d72b93
commit
19fd7cd9c7
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue