From: Alexander Ebert Date: Tue, 23 Jun 2020 17:54:25 +0000 (+0200) Subject: Display a tooltip for the currently selected email type X-Git-Tag: 5.3.0_Alpha_1~202^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c3b52c7740909d97fa9ae33fdc47224cd39f6a81;p=GitHub%2FWoltLab%2FWCF.git Display a tooltip for the currently selected email type --- diff --git a/com.woltlab.wcf/templates/notificationSettings.tpl b/com.woltlab.wcf/templates/notificationSettings.tpl index 9e011ec2ae..e8903824d0 100644 --- a/com.woltlab.wcf/templates/notificationSettings.tpl +++ b/com.woltlab.wcf/templates/notificationSettings.tpl @@ -38,7 +38,7 @@
{if $event->supportsEmailNotification()} - + {if $settings[$event->eventID][mailNotificationType] === 'none'} {else} diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/User/Notification/Settings.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/User/Notification/Settings.js index 7861c4fdd0..2136047031 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/User/Notification/Settings.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/User/Notification/Settings.js @@ -96,11 +96,7 @@ define(['Language', 'Ui/ReusableDropdown'], function (Language, UiReusableDropdo this._getEmailTypeInputElement().value = value; var button = elBySel('.notificationSettingsEmailType[data-object-id="' + _objectId + '"]'); - elAttr( - button, - 'aria-label', - Language.get('wcf.user.notification.mailNotificationType.' + value) - ); + button.title = Language.get('wcf.user.notification.mailNotificationType.' + value); var icon = elBySel('.jsIconNotificationSettingsEmailType', button); icon.classList.remove('fa-clock-o');