Fixed user enable/disable through ACP
authorAlexander Ebert <ebert@woltlab.com>
Sat, 21 Dec 2013 19:31:00 +0000 (20:31 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 21 Dec 2013 19:31:00 +0000 (20:31 +0100)
wcfsetup/install/files/acp/js/WCF.ACP.js
wcfsetup/install/files/lib/data/user/UserAction.class.php

index 4d20332b1520c973cd188bd879c9be24e72f24da..0dae783e2927d2eac3d1b34286cc89b2355ff6b6 100644 (file)
@@ -2096,9 +2096,7 @@ WCF.ACP.User.EnableHandler = {
                });
                
                var $notification = new WCF.System.Notification();
-               $notification.show();
-               
-               WCF.Clipboard.reload();
+               $notification.show(function() { window.location.reload(); });
        }
 };
 
index b7b703e1baaf22e0973a987466eae8162b8ab4b0..8db5ef32c17ac34ec8f744394222e22be43da195 100644 (file)
@@ -471,6 +471,8 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio
                        'addDefaultGroups' => false
                ));
                $action->executeAction();
+               
+               $this->unmarkItems();
        }
        
        /**
@@ -492,5 +494,7 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio
                        'addDefaultGroups' => false
                ));
                $action->executeAction();
+               
+               $this->unmarkItems();
        }
 }