]> source.dussan.org Git - nextcloud-server.git/commitdiff
Drop the hide and show of new users in user list
authorMorris Jobke <hey@morrisjobke.de>
Fri, 16 Jan 2015 14:44:14 +0000 (15:44 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Fri, 16 Jan 2015 17:11:31 +0000 (18:11 +0100)
* causes the first load after the initial load to hide some users in the viewport
  and showing them again, but with a scrolled up viewport
* causes higher load for nearly never visible effects
* fixes #12962

settings/js/users/users.js

index 3e05d12c9af7eddfb59df123b05dd172efa97b52..87d8b1801c1e978875be685d97411a25a7ec340b 100644 (file)
@@ -404,7 +404,6 @@ var UserList = {
                                                return true;
                                        }
                                        var $tr = UserList.add(user, user.lastLogin, false, user.backend);
-                                       $tr.addClass('appear transparent');
                                        trs.push($tr);
                                        loadedUsers++;
                                });
@@ -419,12 +418,6 @@ var UserList = {
                                        $userList.siblings('.loading').remove();
                                }
                                UserList.offset += loadedUsers;
-                               // animate
-                               setTimeout(function() {
-                                       for (var i = 0; i < trs.length; i++) {
-                                               trs[i].removeClass('transparent');
-                                       }
-                               }, 0);
                        }).always(function() {
                                UserList.updating = false;
                        });