]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix deleting multiple user w-o reloading V2
authorBrice Maron <brice@bmaron.net>
Wed, 7 Nov 2012 23:34:38 +0000 (23:34 +0000)
committerBrice Maron <brice@bmaron.net>
Wed, 7 Nov 2012 23:34:38 +0000 (23:34 +0000)
settings/js/users.js

index c6fb17a7fd84b4139f23b338d7ab683cf3749313..90d78f393c8cda7b23cbb49e63f0e1cf3a5c1a85 100644 (file)
@@ -16,7 +16,10 @@ var UserList={
         * finishDelete() completes the process. This allows for 'undo'.
         */
        do_delete:function( uid ) {
-               
+               if (typeof UserList.deleteUid !== 'undefined') {
+                       //Already a user in the undo queue
+                       UserList.finishDelete(null);
+               }
                UserList.deleteUid = uid;
                
                // Set undo flag