]> source.dussan.org Git - nextcloud-server.git/commitdiff
When emptying a list, a hidden entry remains. If the user uid is the same as of a...
authorArthur Schiwon <blizzz@owncloud.com>
Tue, 1 Apr 2014 20:44:08 +0000 (22:44 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Mon, 2 Jun 2014 10:53:55 +0000 (12:53 +0200)
settings/js/users/users.js

index 63153f67f50983e012df458c29d4f758d3f5ea7d..f5c3b1decc542e791168b90cd1ab03ef76dbae3a 100644 (file)
@@ -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;
        },