Fixes typos
authorMatthias Schmidt <gravatronics@live.com>
Mon, 24 Mar 2014 18:42:11 +0000 (19:42 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 24 Mar 2014 18:42:11 +0000 (19:42 +0100)
wcfsetup/install/files/js/WCF.User.js

index 7ee0313c337aa8715a5107292c69462cac73959c..b1bffff2b381d74a7c9b1ed8b28871908e6762c6 100644 (file)
@@ -2573,7 +2573,7 @@ WCF.User.InlineEditor = WCF.InlineEditor.extend({
                        case 'ban':
                        case 'disableAvatar':
                        case 'disableSignature':
-                               if (optionName == 'unban') {
+                               if (optionName == 'ban') {
                                        $data.banned = 1;
                                }
                                else {
@@ -2695,7 +2695,7 @@ WCF.User.InlineEditor = WCF.InlineEditor.extend({
                        if (action === 'confirm') {
                                this._executeReasonAction(userID, optionName, $('#wcfSystemConfirmationContent').find('textarea').val());
                        }
-               }, this), { }, $('<fieldset><dl><dt>' + WCF.Language.get('wcf.global.reason') + '</dt><dd><textarea cols="40" rows="4" />' + ($reasonDescription != $languageID ? '<small>' + $reasonDescription + '</small>' : '') + '</dd></dl></fieldset>'));
+               }, this), { }, $('<fieldset><dl><dt>' + WCF.Language.get('wcf.global.reason') + '</dt><dd><textarea cols="40" rows="4" />' + ($reasonDescription != $languageItem ? '<small>' + $reasonDescription + '</small>' : '') + '</dd></dl></fieldset>'));
        },
        
        /**