diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-11-14 21:23:27 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-11-14 21:52:28 +0100 |
commit | 85209a0a001081c4b82007aea06807922754a059 (patch) | |
tree | 06b3dceaa0833f4cc96b5f91863c323c5758e91a /settings/js/users.js | |
parent | 8b03b683dfc3d612fcc72f404f2dac19d06e203f (diff) | |
download | nextcloud-server-85209a0a001081c4b82007aea06807922754a059.tar.gz nextcloud-server-85209a0a001081c4b82007aea06807922754a059.zip |
Cleanup user settings js
Diffstat (limited to 'settings/js/users.js')
-rw-r--r-- | settings/js/users.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index 249d529df4f..cad3667c50e 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -29,7 +29,6 @@ var UserList={ $('#notification').html(t('users', 'deleted')+' '+uid+'<span class="undo">'+t('users', 'undo')+'</span>'); $('#notification').data('deleteuser',true); $('#notification').fadeIn(); - }, /** @@ -57,7 +56,6 @@ var UserList={ $('#notification').fadeOut(); $('tr').filterAttr('data-uid', UserList.deleteUid).remove(); UserList.deleteCanceled = true; - UserList.deleteFiles = null; if (ready) { ready(); } @@ -401,13 +399,8 @@ $(document).ready(function(){ $('#notification').hide(); $('#notification .undo').live('click', function() { if($('#notification').data('deleteuser')) { - $('tbody tr').each(function(index, row) { - if ($(row).data('uid') == UserList.deleteUid) { - $(row).show(); - } - }); + $('tbody tr').filterAttr('data-uid', UserList.deleteUid).show(); UserList.deleteCanceled=true; - UserList.deleteFiles=null; } $('#notification').fadeOut(); }); |