summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorringmaster <epithet@gmail.com>2014-05-09 09:28:16 -0400
committerArthur Schiwon <blizzz@owncloud.com>2014-06-02 12:53:58 +0200
commitfc7438b22155313b5f592d8ead1a2636afc17e2c (patch)
treee3fe5c7cae0f9373bd6024a2fd834799543de2ea /settings/js
parent4de14fe6da1dacea9c44396927564ab990105df2 (diff)
downloadnextcloud-server-fc7438b22155313b5f592d8ead1a2636afc17e2c.tar.gz
nextcloud-server-fc7438b22155313b5f592d8ead1a2636afc17e2c.zip
Fix UserList.empty(), use _.defer() instead of setTimeout()
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/users/groups.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/settings/js/users/groups.js b/settings/js/users/groups.js
index 5939731cca1..d7642743548 100644
--- a/settings/js/users/groups.js
+++ b/settings/js/users/groups.js
@@ -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 () {