Fix UserList.empty(), use _.defer() instead of setTimeout()

This commit is contained in:
ringmaster 2014-05-09 09:28:16 -04:00 committed by Arthur Schiwon
parent 4de14fe6da
commit fc7438b221
1 changed files with 4 additions and 4 deletions

View 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 () {