]> source.dussan.org Git - nextcloud-server.git/commitdiff
Cleanup user settings js
authorBart Visscher <bartv@thisnet.nl>
Wed, 14 Nov 2012 20:23:27 +0000 (21:23 +0100)
committerBart Visscher <bartv@thisnet.nl>
Wed, 14 Nov 2012 20:52:28 +0000 (21:52 +0100)
settings/js/users.js

index 249d529df4f6354c744170cfaac44349ecdc9817..cad3667c50e731273b3a0e7c407f34c6fd8993c5 100644 (file)
@@ -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();
        });