Display a tooltip for the currently selected email type
authorAlexander Ebert <ebert@woltlab.com>
Tue, 23 Jun 2020 17:54:25 +0000 (19:54 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 23 Jun 2020 17:54:25 +0000 (19:54 +0200)
com.woltlab.wcf/templates/notificationSettings.tpl
wcfsetup/install/files/js/WoltLabSuite/Core/Controller/User/Notification/Settings.js

index 9e011ec2aee8af15fe6b05f5906c57f13431cfd6..e8903824d0ebebf0a60e5edcb6add9d7682cb17d 100644 (file)
@@ -38,7 +38,7 @@
                                                <div class="notificationSettingsEmail">
                                                        {if $event->supportsEmailNotification()}
                                                                <input type="hidden" id="settings_{$event->eventID}_mailNotificationType" name="settings[{@$event->eventID}][mailNotificationType]" value="{$settings[$event->eventID][mailNotificationType]}">
-                                                               <a href="#" class="notificationSettingsEmailType" role="button" aria-label="{lang}wcf.user.notification.mailNotificationType.{@$settings[$event->eventID][mailNotificationType]}{/lang}" data-object-id="{@$event->eventID}">
+                                                               <a href="#" class="notificationSettingsEmailType jsTooltip" role="button" title="{lang}wcf.user.notification.mailNotificationType.{@$settings[$event->eventID][mailNotificationType]}{/lang}" data-object-id="{@$event->eventID}">
                                                                        {if $settings[$event->eventID][mailNotificationType] === 'none'}
                                                                                <span class="icon icon24 fa-times red jsIconNotificationSettingsEmailType"></span>
                                                                        {else}
index 7861c4fdd0257a9c3dfaaa74b5e09a1dedf1bbec..21360470316c29cb22be29aee228ff226f033125 100644 (file)
@@ -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');