From: Kiv4h Date: Mon, 29 Apr 2013 18:29:21 +0000 (+0200) Subject: Fixing toggling message. X-Git-Tag: 2.0.0_Beta_1~277^2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4aa6daef55ff6eec4ba50bfb53f1f1da97c6d13b;p=GitHub%2FWoltLab%2FWCF.git Fixing toggling message. --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 98394d2156..5fe404daa6 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2041,12 +2041,12 @@ WCF.Action.Toggle = Class.extend({ WCF.LoadingOverlayHandler.updateIcon($toggleButton, false); if ($toggleButton.hasClass('icon-off')) { $toggleButton.removeClass('icon-off').addClass('icon-circle-blank'); - $newTitle = ($toggleButton.data('enableTitle') ? $toggleButton.data('enableTitle') : WCF.Language.get('wcf.global.button.enable')); + $newTitle = ($toggleButton.data('disableTitle') ? $toggleButton.data('disableTitle') : WCF.Language.get('wcf.global.button.disable')); $toggleButton.attr('title', $newTitle); } else { $toggleButton.removeClass('icon-circle-blank').addClass('icon-off'); - $newTitle = ($toggleButton.data('disableTitle') ? $toggleButton.data('disableTitle') : WCF.Language.get('wcf.global.button.disable')); + $newTitle = ($toggleButton.data('enableTitle') ? $toggleButton.data('enableTitle') : WCF.Language.get('wcf.global.button.enable')); $toggleButton.attr('title', $newTitle); }