From 1301a8f3f97529098d059a2b9ea11a4745c5340d Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Thu, 10 Sep 2015 23:17:11 +0100 Subject: [PATCH] Add constructed class and messages names in comment for greppability Done in one place but missing in two others. Change-Id: I671326c05e15dfad1fca06f66d6847fcca0c2737 --- modules/ooui/mw.echo.ui.NotificationBadgeWidget.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/ooui/mw.echo.ui.NotificationBadgeWidget.js b/modules/ooui/mw.echo.ui.NotificationBadgeWidget.js index caeb795f3..dafe3cc16 100644 --- a/modules/ooui/mw.echo.ui.NotificationBadgeWidget.js +++ b/modules/ooui/mw.echo.ui.NotificationBadgeWidget.js @@ -89,14 +89,18 @@ framed: false, flags: buttonFlags, label: this.numItems, + // The following messages can be used here: + // tooltip-pt-notifications-alert + // tooltip-pt-notifications-message title: mw.msg( 'tooltip-pt-notifications-' + this.type ), popup: { $content: this.notificationsWidget.$element, $footer: $footer, width: config.popupWidth || 450, head: true, - // This covers the messages 'echo-notification-alert-text-only' - // and 'echo-notification-message-text-only' + // The following messages can be used here: + // echo-notification-alert-text-only + // echo-notification-message-text-only label: mw.msg( 'echo-notification-' + this.type + '-text-only' ) } }, config ) ); @@ -129,6 +133,9 @@ } ); this.popup.connect( this, { toggle: 'onPopupToggle' } ); + // The following classes can be used here: + // mw-echo-ui-notificationBadgeButtonPopupWidget-alert + // mw-echo-ui-notificationBadgeButtonPopupWidget-message this.$element .addClass( 'mw-echo-ui-notificationBadgeButtonPopupWidget ' +