Fixing toggling message.
authorKiv4h <jeffrey.reichardt@googlemail.com>
Mon, 29 Apr 2013 18:29:21 +0000 (20:29 +0200)
committerKiv4h <jeffrey.reichardt@googlemail.com>
Mon, 29 Apr 2013 18:29:21 +0000 (20:29 +0200)
wcfsetup/install/files/js/WCF.js

index 98394d215676ed1e8d6683c08ceeeca8f2d7e455..5fe404daa664abfea2861c782a3e182a8d5ecbad 100755 (executable)
@@ -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);
                }