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);
}