Fixed ban icon tooltip
authorMarcel Werk <burntime@woltlab.com>
Fri, 7 Oct 2016 10:13:07 +0000 (12:13 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 7 Oct 2016 10:13:07 +0000 (12:13 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Editor.js
wcfsetup/install/files/lib/data/user/UserAction.class.php

index e4c03db0b1c4e05c4d84573c59c6ad10bb8e363c..2bd40a90af59401cd9664f9ab1a4748a8d3f317c 100644 (file)
@@ -128,7 +128,7 @@ define(['Ajax', 'Language', 'StringUtil', 'Dom/Util', 'Ui/Dialog', 'Ui/Notificat
                                        if (data.actionName === 'ban') {
                                                banIcon = elCreate('span');
                                                banIcon.className = 'icon icon24 fa-lock jsUserBanned jsTooltip';
-                                               banIcon.title = Language.get('wcf.user.banned');
+                                               banIcon.title = data.returnValues;
                                                contentTitle.appendChild(banIcon);
                                        }
                                        else if (banIcon) {
index 5d321cc5ce09514e98964d9b1022ca69258427e8..3511d756404d8bbf55ab00d8d8ecac62063210fc 100644 (file)
@@ -227,6 +227,9 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio
                );
                
                $this->unmarkItems();
+               
+               $firstUser = new User(reset($this->objectIDs));
+               return WCF::getLanguage()->getDynamicVariable('wcf.user.banned', ['user' => $firstUser]);
        }
        
        /**