From c3b52c7740909d97fa9ae33fdc47224cd39f6a81 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 23 Jun 2020 19:54:25 +0200 Subject: [PATCH] Display a tooltip for the currently selected email type --- com.woltlab.wcf/templates/notificationSettings.tpl | 2 +- .../Core/Controller/User/Notification/Settings.js | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) 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'); -- 2.20.1