From 4aa6daef55ff6eec4ba50bfb53f1f1da97c6d13b Mon Sep 17 00:00:00 2001 From: Kiv4h Date: Mon, 29 Apr 2013 20:29:21 +0200 Subject: [PATCH] Fixing toggling message. --- wcfsetup/install/files/js/WCF.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.20.1