]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix UserList.empty(), use _.defer() instead of setTimeout()
authorringmaster <epithet@gmail.com>
Fri, 9 May 2014 13:28:16 +0000 (09:28 -0400)
committerArthur Schiwon <blizzz@owncloud.com>
Mon, 2 Jun 2014 10:53:58 +0000 (12:53 +0200)
settings/js/users/groups.js

index 5939731cca1b38b7eb4a29f41ea999a2379b5c43..d764274354839ead1870149f37073365b259cda6 100644 (file)
@@ -118,9 +118,9 @@ GroupList = {
                                        else {
                                                GroupList.noMoreEntries = true;
                                        }
-                                       setTimeout(function () {
+                                       _.defer(function () {
                                                $(lis).removeClass('transparent');
-                                       }, 0);
+                                       });
                                }
                                GroupList.updating = false;
 
@@ -188,8 +188,8 @@ GroupList = {
                GroupList.getGroupLI(gid).remove();
        },
        empty: function () {
-               $userGroupList.filter(function(item){
-                       return item.data('gid') !== '';
+               $userGroupList.find('.isgroup').filter(function(index, item){
+                       return $(item).data('gid') !== '';
                }).remove();
        },
        initDeleteHandling: function () {